1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-24 20:01:49 +08:00

update sway for pipewire and add hibernate

This commit is contained in:
juan 2022-04-21 14:08:22 +08:00
parent 58d208c204
commit 226d6aad07
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ set $menu wofi | xargs swaymsg exec --
##starting userspace software ##starting userspace software
exec wlsunset -l 30.4 -L 104.0 -T 6500 -t 3500 exec wlsunset -l 30.4 -L 104.0 -T 6500 -t 3500
exec light -S 70 exec light -S 70
exec --no-startup-id pipewire exec gentoo-pipewire-launcher
exec swaync exec swaync
exec playerctld daemon 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 XF86MonBrightnessDown exec light -U 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob
bindsym XF86AudioPause exec 'playerctl pause' bindsym XF86AudioPause exec 'playerctl pause'
bindsym XF86AudioPlay exec 'playerctl play'
bindsym XF86AudioStop exec 'playerctl stop' bindsym XF86AudioStop exec 'playerctl stop'
bindsym XF86AudioNext exec 'playerctl next' bindsym XF86AudioNext exec 'playerctl next'
bindsym XF86AudioPrev exec 'playerctl previous' bindsym XF86AudioPrev exec 'playerctl previous'

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/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 if test "$choice" = lock ; then
bright=`light` bright=`light`
swayidle -w \ swayidle -w \