fixed duplicate waybar in script and added quotes

This commit is contained in:
2025-05-30 12:18:50 -05:00
parent 1796c3f769
commit b849f59fe3
2 changed files with 6 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ fi
# fi
pipewire & disown
if [ -z $(pgrep wireplumber) ]; then
if [ -z "$(pgrep wireplumber)" ]; then
wireplumber & disown
fi
pipewire-pulse & disown
@@ -39,18 +39,18 @@ sleep 0.5s
# fcitx5 -d
# this program running all the time causes weird key input bugs and lag. i only want to use this when typing special stuff.
if [ "$WAYLAND_DISPLAY" ]; then
if [ "$WAYLAND_DISPLAY" ] && [ -z "$(pgrep -f waybar)" ]; then
waybar & disown
fi
if [ -z $(pgrep -f newsboat-fetch.sh) ]; then
if [ -z "$(pgrep -f newsboat-fetch.sh)" ]; then
./newsboat-fetch.sh &
fi
if [ -z $(pgrep -f lessons-loop.sh) ]; then
if [ -z "$(pgrep -f lessons-loop.sh)" ]; then
./lessons-loop.sh &
fi
if [ -z $(pgrep wezterm) ]; then
if [ -z "$(pgrep wezterm)" ]; then
sleep 2
wezterm -e ~/stuff/scripts/system/task.sh &
fi