From 647dccef36df1e3f317c22dbd161f77c2faf306f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Tue, 21 Mar 2023 17:37:12 +0300 Subject: System sound tweaks --- dotfiles/.local/bin/lock-color | 2 ++ dotfiles/.local/bin/swaysession | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'dotfiles/.local') diff --git a/dotfiles/.local/bin/lock-color b/dotfiles/.local/bin/lock-color index 2d30e0b..2187d44 100755 --- a/dotfiles/.local/bin/lock-color +++ b/dotfiles/.local/bin/lock-color @@ -8,6 +8,8 @@ if [ "$1" != "screenon" ]; then swayidle timeout 30 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' & fi +canberra-gtk-play -i Oxygen-Window-All-Desktops-Not & swaylock pkill -n swayidle +canberra-gtk-play -i Oxygen-Window-All-Desktops diff --git a/dotfiles/.local/bin/swaysession b/dotfiles/.local/bin/swaysession index 4dccbb7..0beaa1c 100755 --- a/dotfiles/.local/bin/swaysession +++ b/dotfiles/.local/bin/swaysession @@ -7,7 +7,7 @@ case "$1" in lock-color ;; logout) - canberra-gtk-play -i Oxygen-Sys-Log-Out & sleep 1 + canberra-gtk-play -i Oxygen-Sys-Log-Out & sleep 1.2 swaymsg exit clear if [ ! -e ~/.cache/dont-kill ]; then @@ -24,13 +24,13 @@ case "$1" in lock-color & sleep 1 && $logind hibernate ;; reboot) - canberra-gtk-play -i Oxygen-Sys-Log-Out & sleep 1 + canberra-gtk-play -i Oxygen-Sys-Log-Out & sleep 1.2 clear swaymsg exit sudo reboot now ;; poweroff) - canberra-gtk-play -i Oxygen-Sys-Log-Out & sleep 1 + canberra-gtk-play -i Oxygen-Sys-Log-Out & sleep 1.2 clear swaymsg exit # Having problems with logind poweroff and reboot after sway exit -- cgit v1.2.3