Kill rofi when already running

This commit is contained in:
Thomas Avé 2023-12-02 17:26:32 +01:00
parent e78cec1387
commit 2a60cd7507
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
if ps -C rofi > /dev/null if ps -C rofi > /dev/null
then then
echo "Already running" killall rofi
else else
export TERMINAL=alacritty export TERMINAL=alacritty
rofi -show combi -combi-modi drun,calc:~/.config/rofi/show-calculator.sh -sort -levenshtein-sort rofi -show combi -combi-modi drun,calc:~/.config/rofi/show-calculator.sh -sort -levenshtein-sort