From 6780cd29054a5293ba68f6716eacc0cf70c6f543 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 23 May 2024 12:25:03 +0900 Subject: [PATCH] editing rofi calc to kill rofi first --- config/hypr/scripts/RofiCalc.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/hypr/scripts/RofiCalc.sh b/config/hypr/scripts/RofiCalc.sh index ff96b3a..355130d 100755 --- a/config/hypr/scripts/RofiCalc.sh +++ b/config/hypr/scripts/RofiCalc.sh @@ -5,6 +5,13 @@ rofi_config="$HOME/.config/rofi/config-calc.rasi" +# Kill Rofi if already running before execution +if pgrep -x "rofi" >/dev/null; then + pkill rofi + exit 0 +fi + +# main function while true; do result=$(