From 628d9bcbf1b075365cb38e6b6572160632568581 Mon Sep 17 00:00:00 2001 From: "M. Yas. Davoodeh" Date: Sat, 1 Aug 2020 20:47:07 +0430 Subject: [PATCH] Final debug on sysact --- .local/bin/sysact | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/sysact b/.local/bin/sysact index 4b89a701..01565d85 100755 --- a/.local/bin/sysact +++ b/.local/bin/sysact @@ -10,7 +10,7 @@ esac pidof i3 && renew="i3 restart" && leave="i3 exit" && wm="i3" pidof dwm && renew="kill -HUP $(pidof -s dwm)" && leave="kill -TERM $(pidof -s dwm)" && wm="dwm" -pidof bspwm && renew="${XDG_CONFIG_HOME:-$HOME/.config}/bspwm/bspwmrc" && wm "bspwm" +pidof bspwm && renew="${XDG_CONFIG_HOME:-$HOME/.config}/bspwm/bspwmrc" && wm="bspwm" cmds="\ šŸ”’ lock slock @@ -20,7 +20,7 @@ cmds="\ šŸ–„ shutdown ${shut:-sudo -A shutdown -h now}" # If both wm and renew command are known add it to the menu -[ -n "$wm" ] && [ -n "$renew" ] && cmds="$(echo "$cmds" | sed "3iā™» renew ${wm} ${renew}")" +[ -n "$wm" ] && [ -n "$renew" ] && cmds="$(echo "$cmds" | sed "3iā™» renew $wm $renew")" choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu)" || exit 1