aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2022-06-21 14:59:43 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2022-06-21 14:59:43 +0000
commita2988072208bd60e6288163f6e14a067f32aca3d (patch)
treeb26fefc3bbd074e731aec2fa34f15a704153158a
parent03d1f4c0e4792f530a21677e19305adbcb14789e (diff)
parentbedf62bcba9c75069bb656e4f262f87187010360 (diff)
downloaddotfiles-a2988072208bd60e6288163f6e14a067f32aca3d.tar
dotfiles-a2988072208bd60e6288163f6e14a067f32aca3d.tar.gz
dotfiles-a2988072208bd60e6288163f6e14a067f32aca3d.tar.bz2
dotfiles-a2988072208bd60e6288163f6e14a067f32aca3d.tar.lz
dotfiles-a2988072208bd60e6288163f6e14a067f32aca3d.tar.xz
dotfiles-a2988072208bd60e6288163f6e14a067f32aca3d.tar.zst
dotfiles-a2988072208bd60e6288163f6e14a067f32aca3d.zip
Merge branch 'master' of https://git.aninternettroll.xyz/aninternettroll/dotfiles
-rw-r--r--.config/sway/config6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/sway/config b/.config/sway/config
index 11d4c6f..e0f1ac7 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
#
@@ -125,6 +127,10 @@ input "1:1:AT_Translated_Set_2_keyboard" xkb_layout 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