diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2023-03-21 17:01:28 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2023-03-21 17:01:28 +0300 |
commit | ff0ac3b1cd63f4da4c4b88e14ac1f76a9545ff3d (patch) | |
tree | f4032ee7bf5b666c7f4980f1c5ab7c34a7e5853b /dotfiles/.local/bin | |
parent | 51e3a75388afedf3962d0e0fb10659db83a536c2 (diff) | |
download | swayrice-ff0ac3b1cd63f4da4c4b88e14ac1f76a9545ff3d.tar.gz swayrice-ff0ac3b1cd63f4da4c4b88e14ac1f76a9545ff3d.zip |
"Use" KDE oxygen sound effects
Diffstat (limited to 'dotfiles/.local/bin')
-rwxr-xr-x | dotfiles/.local/bin/swaysession | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/dotfiles/.local/bin/swaysession b/dotfiles/.local/bin/swaysession index 221ba0e..4dccbb7 100755 --- a/dotfiles/.local/bin/swaysession +++ b/dotfiles/.local/bin/swaysession @@ -7,6 +7,7 @@ case "$1" in lock-color ;; logout) + canberra-gtk-play -i Oxygen-Sys-Log-Out & sleep 1 swaymsg exit clear if [ ! -e ~/.cache/dont-kill ]; then @@ -23,14 +24,17 @@ case "$1" in lock-color & sleep 1 && $logind hibernate ;; reboot) - swaymsg exit + canberra-gtk-play -i Oxygen-Sys-Log-Out & sleep 1 clear - $logind reboot + swaymsg exit + sudo reboot now ;; poweroff) - swaymsg exit + canberra-gtk-play -i Oxygen-Sys-Log-Out & sleep 1 clear - $logind poweroff + swaymsg exit + # Having problems with logind poweroff and reboot after sway exit + sudo poweroff now ;; *) if [ "$SWAYSESSION_GUI" = 1 ]; then |