fixed duplicate waybar in script and added quotes

This commit is contained in:
iceyrazor 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 # fi
pipewire & disown pipewire & disown
if [ -z $(pgrep wireplumber) ]; then if [ -z "$(pgrep wireplumber)" ]; then
wireplumber & disown wireplumber & disown
fi fi
pipewire-pulse & disown pipewire-pulse & disown
@ -39,18 +39,18 @@ sleep 0.5s
# fcitx5 -d # 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. # 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 waybar & disown
fi fi
if [ -z $(pgrep -f newsboat-fetch.sh) ]; then if [ -z "$(pgrep -f newsboat-fetch.sh)" ]; then
./newsboat-fetch.sh & ./newsboat-fetch.sh &
fi fi
if [ -z $(pgrep -f lessons-loop.sh) ]; then if [ -z "$(pgrep -f lessons-loop.sh)" ]; then
./lessons-loop.sh & ./lessons-loop.sh &
fi fi
if [ -z $(pgrep wezterm) ]; then if [ -z "$(pgrep wezterm)" ]; then
sleep 2 sleep 2
wezterm -e ~/stuff/scripts/system/task.sh & wezterm -e ~/stuff/scripts/system/task.sh &
fi fi

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
newsboat_loop(){ newsboat_loop(){
notify-send -t 6000 -i '/home/iceyrazor/stuff/media/saved gifs/duolingo-crop-s.jpg' "Anki" "did you do your japanese lessons today?" notify-send -t 6000 -i '/home/iceyrazor/stuff/media/saved gifs/duolingo-crop-s.jpg' "Anki" "did you do your japanese lessons today?"
sleep 2h sleep 1h
newsboat_loop newsboat_loop
} }
newsboat_loop newsboat_loop