aboutsummaryrefslogtreecommitdiff
path: root/.config/sway/config
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/sway/config6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/sway/config b/.config/sway/config
index 933acfd..f2b6097 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -71,6 +71,8 @@ set $screenshot slurp \
set $toggle_layout input "type:keyboard" xkb_switch_layout next
set $lock swaylock
set $toggle_bar killall -SIGUSR1 waybar
+# brightnessctl --list | grep kbd
+set $keyboard_backlight "asus::kbd_backlight"
### Output configuration
#
@@ -124,6 +126,10 @@ input "2821:6228:Asus_Keyboard" xkb_layout us,no
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+
+ # Keyboard Brightness
+ bindsym --locked XF86KbdBrightnessDown exec brightnessctl --device $keyboard_backlight set 1-
+ bindsym --locked XF86KbdBrightnessUp exec brightnessctl --device $keyboard_backlight set 1+
+
# Turn off screen
bindsym --locked XF86DisplayOff output $laptop_screen toggle