From 1a56986bbb8aaa109f695025b397235da01129cd Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Sun, 30 Oct 2022 20:57:28 +0100 Subject: [PATCH] Adjust laptop brightness controls --- .config/i3/layers/config.post-main-90-laptop | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.config/i3/layers/config.post-main-90-laptop b/.config/i3/layers/config.post-main-90-laptop index 903dec5..82e26ec 100644 --- a/.config/i3/layers/config.post-main-90-laptop +++ b/.config/i3/layers/config.post-main-90-laptop @@ -1,6 +1,10 @@ # brightness control -bindsym XF86MonBrightnessDown exec sudo brightnessctl set -q 5%- -bindsym XF86MonBrightnessUp exec sudo brightnessctl set -q +5% +set $brightness_down sudo /usr/bin/brightnessctl set -q 5%- +set $brightness_up sudo /usr/bin/brightnessctl set -q +5% +bindsym XF86MonBrightnessDown exec $brightness_down +bindsym XF86KbdBrightnessDown exec $brightness_down +bindsym XF86MonBrightnessUp exec sudo $brightness_up +bindsym XF86KbdBrightnessUp exec sudo $brightness_up # Battery manager exec_always --no-startup-id killall battmon; battmon