-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathi3_config_snippet
20 lines (15 loc) · 1.06 KB
/
i3_config_snippet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# This below snippet should be added to your i3 config file, for example, ~/.config/i3/config, but only after you have written
# the full path to xrandrctly.py (or minixrandrctl.py) on your system in place of /home/my_name/my_scripts/xrandrctl.py
# Add a 'display' mode to i3, bound to mod+braceleft and exited using the Escape or Return keys.
# In this mode, the arrow keys may be used to change the brightness & gamma of all screens.
set $mode_display Left: redder Right: bluer Up: brighter Down: dimmer r: reset values (Enter/Esc: Leave selection)
bindsym $mod+braceleft mode "$mode_display"
mode "$mode_display" {
bindsym Up exec python /home/my_name/my_scripts/xrandrctl.py --brighter
bindsym Down exec python /home/my_name/my_scripts/xrandrctl.py --dimmer
bindsym Left exec python /home/my_name/my_scripts/xrandrctl.py --redder
bindsym Right exec python /home/my_name/my_scripts/xrandrctl.py --bluer
bindsym r exec python /home/my_name/my_scripts/xrandrctl.py --reset
bindsym Escape mode "default"
bindsym Return mode "default"
}