mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-21 09:35:40 +02:00
Revert "i3: workaround an issue with brightness not up-to-date in polybar"
This reverts commit 9674bbfdde
. Use
`use-actual-brightness = true` in polybar configuration instead.
This commit is contained in:
parent
9674bbfdde
commit
8b25dd3c77
3 changed files with 3 additions and 9 deletions
|
@ -1,7 +0,0 @@
|
|||
#!/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 ~/.config/i3/bin/brightness 5%+
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id exec ~/.config/i3/bin/brightness 5%-
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id exec brightnessctl -q set +5%
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id exec brightnessctl -q set 5%-
|
||||
|
||||
# use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
|
|
@ -88,6 +88,7 @@ label = %percentage: 2%%
|
|||
ramp-0 =
|
||||
ramp-1 =
|
||||
enable-scroll = true
|
||||
use-actual-brightness = true
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue