From a66ef7906c3a7d554053df085fdf95c7c9f23177 Mon Sep 17 00:00:00 2001 From: Sadbeast Date: Thu, 17 Sep 2020 13:47:05 -0500 Subject: wob progress bars, etc. --- .config/sway/config | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to '.config') diff --git a/.config/sway/config b/.config/sway/config index 77750db..ffe1f3c 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -14,7 +14,7 @@ set $down j set $up k set $right l # Your preferred terminal emulator -set $term alacritty +set $term termite # Your preferred application launcher # Note: it's recommended that you pass the final command to sway set $menu wofi -f --show run | xargs swaymsg exec -- @@ -40,11 +40,8 @@ default_floating_border normal hide_edge_borders smart smart_gaps on -gaps inner 10 +gaps outer 0 -# Brightness controls -bindsym --locked XF86MonBrightnessUp exec light -A 10 -bindsym --locked XF86MonBrightnessDown exec light -U 10 ### Output configuration # @@ -205,6 +202,7 @@ default_border pixel # Show the next scratchpad window or hide the focused scratchpad window. # If there are multiple scratchpad windows, this command cycles through them. bindsym $mod+minus scratchpad show + # # Resizing containers: # @@ -230,6 +228,24 @@ mode "resize" { } bindsym $mod+r mode "resize" +bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% && pamixer --get-volume > $SWAYSOCK.wob +bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && pamixer --get-volume > $SWAYSOCK.wob +bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle +bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle + +bindsym XF86AudioPlay exec playerctl play-pause +bindsym XF86AudioNext exec playerctl next +bindsym XF86AudioPrev exec playerctl previous + +# Brightness controls +#bindsym --locked XF86MonBrightnessUp exec light -A 10 +#bindsym --locked XF86MonBrightnessDown exec light -U 10 + +bindsym XF86MonBrightnessUp exec light -A 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob +bindsym XF86MonBrightnessDown exec light -U 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob + +exec mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob + exec_always ~/.config/waybar/waybar.sh include /etc/sway/config.d/* -- cgit v1.2.3