Add wob as display brightness change bar

This commit is contained in:
Arti Zirk 2019-09-30 16:40:00 +03:00
parent 5955d69af7
commit 54281c6151
1 changed files with 8 additions and 5 deletions

View File

@ -51,6 +51,9 @@ exec xrdb -load ~/.Xresources
# Notification daemon
exec mako --default-timeout 10000
# Simple bar
exec rm /tmp/wobpipe; mkfifo /tmp/wobpipe && tail -f /tmp/wobpipe | wob
# Polkit agent
exec ~/.bin/polkit-agent
@ -236,13 +239,13 @@ mode "resize" {
bindsym $mod+r mode "resize"
# volume
bindsym XF86AudioMute exec --no-startup-id amixer set Master toggle
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 5%+
bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 5%-
bindsym XF86AudioMute exec amixer set Master toggle
bindsym XF86AudioRaiseVolume exec amixer set Master 5%+
bindsym XF86AudioLowerVolume exec amixer set Master 5%-
#brightness control
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl --quiet set +5%
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl --quiet set 5%-
bindsym XF86MonBrightnessUp exec brightnessctl -m set +5% | cut -d',' -f4 | cut -d'%' -f1 > /tmp/wobpipe
bindsym XF86MonBrightnessDown exec brightnessctl -m set 5%- | cut -d',' -f4 | cut -d'%' -f1 > /tmp/wobpipe
# Authy 2FA window
for_window [title="^Authy$"] floating enable