add display off option (#920)

mostly for laptops to save power
This commit is contained in:
skrrtskrrtman 2021-03-30 09:30:01 +08:00 committed by GitHub
parent 87c2950039
commit 12d6d5ec80
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