diff options
| -rwxr-xr-x | config/hypr/scripts/RofiCalc.sh | 7 |
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=$( |
