From 8b25dd3c77d2b4da2fe8a5831d3a18e220c73b4c Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 6 Oct 2022 07:47:11 +0200 Subject: [PATCH] Revert "i3: workaround an issue with brightness not up-to-date in polybar" This reverts commit 9674bbfdde08e0f844506dc2bdfbb933d60023e9. Use `use-actual-brightness = true` in polybar configuration instead. --- bin/brightness | 7 ------- config | 4 ++-- dotfiles/polybar.conf | 1 + 3 files changed, 3 insertions(+), 9 deletions(-) delete mode 100755 bin/brightness diff --git a/bin/brightness b/bin/brightness deleted file mode 100755 index 073e25a..0000000 --- a/bin/brightness +++ /dev/null @@ -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 diff --git a/config b/config index c864ad4..93eb1da 100644 --- a/config +++ b/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 diff --git a/dotfiles/polybar.conf b/dotfiles/polybar.conf index e8228ae..176adc8 100644 --- a/dotfiles/polybar.conf +++ b/dotfiles/polybar.conf @@ -88,6 +88,7 @@ label = %percentage: 2%% ramp-0 =  ramp-1 =  enable-scroll = true +use-actual-brightness = true [module/cpu] type = internal/cpu