From ff0ac3b1cd63f4da4c4b88e14ac1f76a9545ff3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Tue, 21 Mar 2023 17:01:28 +0300 Subject: "Use" KDE oxygen sound effects --- dotfiles/.local/bin/swaysession | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'dotfiles/.local/bin') 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 -- cgit v1.2.3