mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-12-22 01:43:10 -05:00
Add logout script for river
This commit is contained in:
parent
a6423a17bb
commit
5b5368193e
2 changed files with 6 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
|||
}
|
||||
{
|
||||
"label" : "logout",
|
||||
"action" : "loginctl terminate-user $USER",
|
||||
"action" : "${HOME}/.local/bin/river-logout",
|
||||
"text" : "Logout",
|
||||
"keybind" : "e"
|
||||
}
|
||||
|
|
5
dot_local/bin/executable_river-logout
Normal file
5
dot_local/bin/executable_river-logout
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
RIVER=`ps -C river`
|
||||
|
||||
[[ $RIVER != "" ]] && riverctl spawn 'reset' && riverctl exit || echo "River is not running."
|
Loading…
Reference in a new issue