diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2025-05-30 12:18:50 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2025-05-30 12:18:50 -0500 |
| commit | b849f59fe36b6fd08d64040f68f1d2548c7563db (patch) | |
| tree | 8c9835251e0d1576338719fc4b6c156944dac310 /env/.local/bin/system/start-scripts | |
| parent | 1796c3f76900cde8a5b25f93e87d73946bf5e8b2 (diff) | |
fixed duplicate waybar in script and added quotes
Diffstat (limited to 'env/.local/bin/system/start-scripts')
| -rwxr-xr-x | env/.local/bin/system/start-scripts/autostart.sh | 10 | ||||
| -rwxr-xr-x | env/.local/bin/system/start-scripts/lessons-loop.sh | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/env/.local/bin/system/start-scripts/autostart.sh b/env/.local/bin/system/start-scripts/autostart.sh index bc25fe0..e54ab15 100755 --- a/env/.local/bin/system/start-scripts/autostart.sh +++ b/env/.local/bin/system/start-scripts/autostart.sh @@ -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 diff --git a/env/.local/bin/system/start-scripts/lessons-loop.sh b/env/.local/bin/system/start-scripts/lessons-loop.sh index b292c65..bbff617 100755 --- a/env/.local/bin/system/start-scripts/lessons-loop.sh +++ b/env/.local/bin/system/start-scripts/lessons-loop.sh @@ -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 |
