Update sysact

this change removes the incorrect white space char next to `shutdown` and `renew` and replaces it with a regular white space char.

I'm not sure if others experience this, but I get a box character next to `shutdown` and `renew`. When I open this in my code editor and switch the font to Liberation Mono, the same box char appears. You likely don't experience this issue if you did not change your font to liberation mono.

My theory is that it's a char that doesn't render the same in Liberation Mono as it does in Luke's default font.
This commit is contained in:
wickedjargon 2021-12-15 21:04:43 -05:00 committed by GitHub
parent ed9a67ed6d
commit 7e9f710f10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,14 +5,14 @@ case "$(readlink -f /sbin/init)" in
*) ctl='loginctl' ;;
esac
case "$(printf "🔒 lock\n🚪 leave dwm\n♻ renew dwm\n🐻 hibernate\n💤 sleep\n🔃 reboot\n🖥shutdown\n📺 display off" | dmenu -i -p 'Action: ')" in
case "$(printf "🔒 lock\n🚪 leave dwm\n♻ renew dwm\n🐻 hibernate\n💤 sleep\n🔃 reboot\n🖥 shutdown\n📺 display off" | dmenu -i -p 'Action: ')" in
'🔒 lock') slock ;;
'🚪 leave dwm') kill -TERM "$(pgrep -u "$USER" "\bdwm$")" ;;
'♻ renew dwm') kill -HUP "$(pgrep -u "$USER" "\bdwm$")" ;;
'♻ renew dwm') kill -HUP "$(pgrep -u "$USER" "\bdwm$")" ;;
'🐻 hibernate') slock $ctl hibernate ;;
'💤 sleep') slock $ctl suspend ;;
'🔃 reboot') $ctl reboot ;;
'🖥shutdown') $ctl poweroff ;;
'🖥 shutdown') $ctl poweroff ;;
'📺 display off') xset dpms force off ;;
*) exit 1 ;;
esac