fixed duplicate waybar in script and added quotes
This commit is contained in:
parent
1796c3f769
commit
b849f59fe3
|
@ -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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
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?"
|
||||
sleep 2h
|
||||
sleep 1h
|
||||
newsboat_loop
|
||||
}
|
||||
newsboat_loop
|
||||
|
|
Loading…
Reference in New Issue