From 226d6aad0743f21b043f0d2311a492ce1d76338b Mon Sep 17 00:00:00 2001 From: juan Date: Thu, 21 Apr 2022 14:08:22 +0800 Subject: [PATCH] update sway for pipewire and add hibernate --- .config/sway/config | 3 ++- .config/sway/scripts/logout.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 3b144fb..8bf5dd1 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -11,7 +11,7 @@ set $menu wofi | xargs swaymsg exec -- ##starting userspace software exec wlsunset -l 30.4 -L 104.0 -T 6500 -t 3500 exec light -S 70 -exec --no-startup-id pipewire +exec gentoo-pipewire-launcher exec swaync exec playerctld daemon @@ -53,6 +53,7 @@ bindsym XF86MonBrightnessUp exec light -A 5 && light -G | cut -d'.' -f1 > $SWAYS bindsym XF86MonBrightnessDown exec light -U 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob bindsym XF86AudioPause exec 'playerctl pause' +bindsym XF86AudioPlay exec 'playerctl play' bindsym XF86AudioStop exec 'playerctl stop' bindsym XF86AudioNext exec 'playerctl next' bindsym XF86AudioPrev exec 'playerctl previous' diff --git a/.config/sway/scripts/logout.sh b/.config/sway/scripts/logout.sh index c7f2905..90fe787 100755 --- a/.config/sway/scripts/logout.sh +++ b/.config/sway/scripts/logout.sh @@ -1,6 +1,6 @@ #!/bin/sh -choice=`echo "suspend\nshutdown\npoweroff\nreboot\nlock" | wofi -d -Oalphabetical` +choice=`echo "suspend\nshutdown\npoweroff\nreboot\nlock\nhibernate" | wofi -d -Oalphabetical` if test "$choice" = lock ; then bright=`light` swayidle -w \