add display off option

mostly for laptops to save power
This commit is contained in:
skrrtskrrtman 2021-03-25 16:24:35 +08:00 committed by GitHub
parent 263a3c5da2
commit 5ff2fe9793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,8 @@ cmds="\
♻ renew dwm kill -HUP $(pgrep -u $USER "\bdwm$")
🐻 hibernate slock ${hib:-systemctl suspend-then-hibernate -i}
🔃 reboot ${reb:-sudo -A reboot}
🖥 shutdown ${shut:-sudo -A shutdown -h now}"
🖥 shutdown ${shut:-sudo -A shutdown -h now}
📺 display off xset dpms force off"
choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu)" || exit 1