aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-05-02 21:58:35 +0200
committerKarel Kočí <cynerd@email.cz>2018-05-02 22:01:08 +0200
commit92b41d5d4cb3128a3014e8eb8a6ff4b9ed495051 (patch)
tree6de4a2165b78106844541f6f88ecd125d4eeb15f
parent40bda63ae01cd486d02eaaef614ad4a76dd97d8f (diff)
downloadmyconfigs-92b41d5d4cb3128a3014e8eb8a6ff4b9ed495051.tar.gz
myconfigs-92b41d5d4cb3128a3014e8eb8a6ff4b9ed495051.tar.bz2
myconfigs-92b41d5d4cb3128a3014e8eb8a6ff4b9ed495051.zip
Drop asus-fan script
This script is no longer needed by me. I no longer have asus laptop.
-rw-r--r--config/i3/config10
-rwxr-xr-xlocal/bin/asus-fan28
2 files changed, 0 insertions, 38 deletions
diff --git a/config/i3/config b/config/i3/config
index 7099a68..f5645ad 100644
--- a/config/i3/config
+++ b/config/i3/config
@@ -130,16 +130,6 @@ 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
mode "resize" {
bindsym h resize shrink width 10 px or 10 ppt
diff --git a/local/bin/asus-fan b/local/bin/asus-fan
deleted file mode 100755
index 09e54f1..0000000
--- a/local/bin/asus-fan
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-# TODO this probably should be auto detected, because hwmon number can change
-HWMON=/sys/devices/platform/asus-nb-wmi/hwmon/hwmon1
-
-if [ "$(whoami)" != "root" ]; then
- echo "Run $0 only with root privileges"
- exit -1
-fi
-
-case "$1" in
- -h|--help)
- echo "Usage: $0 -h|full|auto"
- echo "This script controls asus hwmon"
- echo " full - Full throttle"
- echo " auto - Automatic hardware control"
- ;;
- full)
- echo 1 > $HWMON/pwm1_enable
- echo 255 > $HWMON/pwm1
- ;;
- auto)
- echo 0 > $HWMON/pwm1_enable
- ;;
- *)
- echo "Unknown or no option given!"
- exit -2
- ;;
-esac