From 677e2db01071fbecfbbe684c51c1db7e21a142af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 24 Jan 2017 17:03:35 +0100 Subject: Add new script asus-fan This script is for explicit switching between full or automatic fan control. --- config/i3/config | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'config/i3') diff --git a/config/i3/config b/config/i3/config index 30609bc..cfd0ffe 100644 --- a/config/i3/config +++ b/config/i3/config @@ -164,6 +164,15 @@ mode "$displays" { } bindsym $mod+Shift+w mode "$displays" +set $asus-fan fan: (f)ull, (a)uto +mode "$asus-fan" { + bindsym f exec --no-startup-id sudo asus-fan full, mode "default" + bindsym a exec --no-startup-id sudo asus-fan auto, mode "default" + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+Shift+f mode "$asus-fan" + # resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode @@ -187,7 +196,6 @@ mode "resize" { bindsym Return mode "default" bindsym Escape mode "default" } - bindsym $mod+r mode "resize" # Switch keyboard -- cgit v1.2.3