mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-11-09 14:00:47 -05:00
Compare commits
3 commits
a6423a17bb
...
d545bb85c9
Author | SHA1 | Date | |
---|---|---|---|
d545bb85c9 | |||
b3b7209ffa | |||
5b5368193e |
3 changed files with 7 additions and 2 deletions
|
@ -75,4 +75,4 @@ export XAUTHORITY="${XDG_RUNTIME_DIR}/Xauthority"
|
|||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||
|
||||
# start river
|
||||
[[ -z "${DISPLAY}" && "${XDG_VTNR}" -eq 1 ]] && exec dbus-run-session river
|
||||
[[ -z $DISPLAY && $(tty) = "/dev/tty1" ]] && exec dbus-run-session river
|
||||
|
|
|
@ -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 | awk '/river/'`
|
||||
|
||||
[[ $RIVER != "" ]] && riverctl spawn 'reset' && riverctl exit || echo "River is not running."
|
Loading…
Reference in a new issue