From 86a7c8a3eec586dc4173dc74c1504feb7d5235e2 Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Sun, 27 Sep 2015 09:47:55 +0200 Subject: [PATCH] Add backlight management --- dotfiles.yml | 2 +- i3.base | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dotfiles.yml b/dotfiles.yml index 476ad81..e18e4aa 100644 --- a/dotfiles.yml +++ b/dotfiles.yml @@ -56,6 +56,7 @@ - pcmanfm - dunst - numlockx + - xbacklight - name: Other convenient tools are installed apt: name={{ item }} state=present tags: tools @@ -92,7 +93,6 @@ # TODO # i3 bugfixes: # ++ http://www.draconianoverlord.com/2014/05/26/from-xmonad-to-i3.html -# Fn keys (sound, brightness ...). Try https://wiki.archlinux.org/index.php/Fcitx ? # # https://github.com/sgentle/caniuse-cmd # diff --git a/i3.base b/i3.base index e0c30ea..249d026 100644 --- a/i3.base +++ b/i3.base @@ -145,10 +145,14 @@ mode "resize" { bindsym $mod+r mode "resize" +# To get keycodes, run: sudo showkey -k bindsym XF86AudioRaiseVolume exec --no-startup-id handle-volume-change up bindsym XF86AudioLowerVolume exec --no-startup-id handle-volume-change down bindsym XF86AudioMute exec --no-startup-id handle-volume-change mute +bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10 +bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10 + # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar {