commit fe51058546f07ff401e456ae7440fa1b1f027c99 parent 11ec8cf3eac173a2fa6fef0c0dadf363e9bc16d1 Author: Szymon Mikulicz <szymon.mikulicz@posteo.net> Date: Sat, 3 Aug 2019 21:48:00 +0200 Merge branch 'master' into notwobug Diffstat:
| A | i3/.i3/brightness.sh | | | 7 | +++++++ |
| M | i3/.i3/config | | | 18 | ++++++++++++++++++ |
2 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/i3/.i3/brightness.sh b/i3/.i3/brightness.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +MON_NMB=2 + +for i in $(seq 1 $MON_NMB); do + while ! ddcutil -d $i setvcp 10 $1; do :; done +done diff --git a/i3/.i3/config b/i3/.i3/config @@ -106,6 +106,24 @@ mode $power_control { } bindsym $mod+n mode $power_control +mode "brightness" { + bindsym grave exec ~/.i3/brightness.sh 00 + bindsym 1 exec ~/.i3/brightness.sh 10 + bindsym 2 exec ~/.i3/brightness.sh 20 + bindsym 3 exec ~/.i3/brightness.sh 30 + bindsym 4 exec ~/.i3/brightness.sh 40 + bindsym 5 exec ~/.i3/brightness.sh 50 + bindsym 6 exec ~/.i3/brightness.sh 60 + bindsym 7 exec ~/.i3/brightness.sh 70 + bindsym 8 exec ~/.i3/brightness.sh 80 + bindsym 9 exec ~/.i3/brightness.sh 90 + bindsym 0 exec ~/.i3/brightness.sh 100 + + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+Shift+b mode "brightness" + new_window pixel 2 gaps inner 10