Compare commits

..

3 commits

3 changed files with 7 additions and 2 deletions

View file

@ -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

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 | awk '/river/'`
[[ $RIVER != "" ]] && riverctl spawn 'reset' && riverctl exit || echo "River is not running."