birdwm

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9f2ae1705286c3caf76d944fe018578fce38d5fe
parent ae49e2492864ad7046d6dada5473ab3be1e581b2
Author: grouse <bdmfegys@duck.com>
Date:   Mon,  4 Mar 2024 16:59:05 -0500

fix X app restart options in case statement of restarter dmenu script

Diffstat:
Mextras/restarter | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/extras/restarter b/extras/restarter @@ -1,12 +1,13 @@ #!/bin/sh #case "$(printf "Get IP\nShutdown\nRestart\nKill DWM\nRestart slstatus\nRestart picom\nRestart dunst" | dmenu -i)" in case "$(printf "Get IP\nRestart slstatus\nRestart picom\nRestart dunst" | dmenu -i)" in - "Get IP") dunstify $(curl ifconfig.co ifconfig.co/city ifconfig.co/country);; + "Get IP") dunstify $(curl ifconfig.co ifconfig.co/city);; + # restart X programs + "Restart picom") { [ -z $(pgrep picom) ] && pkill picom ;} || picom ;; + "Restart slstatus") { [ -z $(pgrep slstatus) ] && pkill slstatus ;} || slstatus;; + "Restart dunst") { [ -z $(pgrep dunst) ] && pkill dunst ;} || dunst ;; # "Shutdown") shutdown now;; # "Restart") reboot ;; # "Restart DWM") pkill dwm && sudo --askpass systemctl restart ly;; - "Restart picom") [ -z $(pgrep picom) ] && pkill picom || picom;; - "Restart slstatus") [ -z $(pgrep slstatus) ] && pkill slstatus || slstatus;; - "Restart dunst") [ -z $(pgrep dunst) ] && pkill dunst || dunst;; *) exit 1 ;; esac