Created
September 27, 2020 07:13
-
-
Save m0ppers/10d64e0e97cc55fb1c5a8ed0814ce27a to your computer and use it in GitHub Desktop.
asus AMD laptop + waybar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tested on a G14. needs jq and inotify-tools on arch linux | |
"custom/asus-laptop": { | |
"format": " {}", | |
"exec": "while true; do jq --unbuffered --compact-output --arg fan $(cat /sys/devices/platform/asus-nb-wmi/throttle_thermal_policy) --arg turbo $(cat /sys/devices/system/cpu/cpufreq/boost) -n '.text=\"Fan: \" + if $fan == \"0\" then \"normal\" elif $fan == \"1\" then \"boost\" else \"silent\" end + \", Turbo: \" + if $turbo==\"1\" then \"on\" else \"off\" end'; inotifywait --quiet -e modify /sys/devices/system/cpu/cpufreq/boost /sys/devices/platform/asus-nb-wmi/throttle_thermal_policy > /dev/null; done", | |
"return-type": "json" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#custom-asus-laptop { | |
padding: 0 10px; | |
margin: 0 4px; | |
background-color: #66cc99; | |
color: #000000; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment