From 7e9f710f1015ca7d14ccbd9c2ddb3008df3acb84 Mon Sep 17 00:00:00 2001 From: wickedjargon Date: Wed, 15 Dec 2021 21:04:43 -0500 Subject: [PATCH] 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. --- .local/bin/sysact | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.local/bin/sysact b/.local/bin/sysact index 451815df..cbd46705 100755 --- a/.local/bin/sysact +++ b/.local/bin/sysact @@ -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