aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-03-21 17:37:12 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-03-21 17:37:12 +0300
commit647dccef36df1e3f317c22dbd161f77c2faf306f (patch)
tree689f3066119993507633611fc851f37b354115d4 /dotfiles
parentf8d26b9518990a6800e9ccce01ce17296c4a1df8 (diff)
downloadswayrice-647dccef36df1e3f317c22dbd161f77c2faf306f.tar.gz
swayrice-647dccef36df1e3f317c22dbd161f77c2faf306f.zip
System sound tweaks
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/.config/sway/config2
-rwxr-xr-xdotfiles/.local/bin/lock-color2
-rwxr-xr-xdotfiles/.local/bin/swaysession6
3 files changed, 5 insertions, 5 deletions
diff --git a/dotfiles/.config/sway/config b/dotfiles/.config/sway/config
index 36b89b9..c967a40 100644
--- a/dotfiles/.config/sway/config
+++ b/dotfiles/.config/sway/config
@@ -68,8 +68,6 @@ exec mako
exec_always setsessionenv
# xdg-desktop-portal screen sharing crap
exec dbus-update-activation-environment DISPLAY I3SOCK SWAYSOCK WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
-# log in sound
-exec sleep 2 && canberra-gtk-play -i Oxygen-Sys-App-Positive
# Workspace names
# to display names or symbols instead of plain workspace numbers you can use
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