Add logout script for river

This commit is contained in:
Andrew Scott 2023-12-24 02:37:31 -05:00
parent a6423a17bb
commit 5b5368193e
Signed by: a
GPG key ID: 7CD5A5977E4931C1
2 changed files with 6 additions and 1 deletions

View file

@ -12,7 +12,7 @@
}
{
"label" : "logout",
"action" : "loginctl terminate-user $USER",
"action" : "${HOME}/.local/bin/river-logout",
"text" : "Logout",
"keybind" : "e"
}

View file

@ -0,0 +1,5 @@
#!/bin/bash
RIVER=`ps -C river`
[[ $RIVER != "" ]] && riverctl spawn 'reset' && riverctl exit || echo "River is not running."