mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-07 03:34:40 +02:00
i3: workaround an issue with brightness not up-to-date in polybar
This commit is contained in:
parent
21a885e1ec
commit
9674bbfdde
2 changed files with 9 additions and 2 deletions
7
bin/brightness
Executable file
7
bin/brightness
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Set brightness and sleep a bit before reading back the value
|
||||
|
||||
brightnessctl -q set $1
|
||||
sleep 0.1
|
||||
brightnessctl > /dev/null
|
4
config
4
config
|
@ -39,8 +39,8 @@ bindsym XF86AudioPrev exec --no-startup-id exec playerctl -p $mediaplayer
|
|||
bindsym $mod+s exec --no-startup-id exec ~/.config/i3/bin/rofi-mediaplayer $mediaplayer
|
||||
|
||||
# brightness
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id exec brightnessctl -q set +5%
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id exec brightnessctl -q set 5%-
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id exec ~/.config/i3/bin/brightness 5%+
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id exec ~/.config/i3/bin/brightness 5%-
|
||||
|
||||
# use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue