aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2024-05-23 12:25:03 +0900
committerJaKooLit <ejhay.games@gmail.com>2024-05-23 12:25:03 +0900
commit6780cd29054a5293ba68f6716eacc0cf70c6f543 (patch)
tree9f7cb3b2349352eaa5f97156f7e5b44c8538374e
parent074d06e3b51760edc2ca62ec198bba205eeb0bbf (diff)
editing rofi calc to kill rofi first
-rwxr-xr-xconfig/hypr/scripts/RofiCalc.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/hypr/scripts/RofiCalc.sh b/config/hypr/scripts/RofiCalc.sh
index ff96b3a8..355130de 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=$(
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage