diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2025-05-24 04:08:28 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2025-05-24 04:08:28 -0500 |
| commit | e966d5328d6f328546db213278d1a1a6cd2f58d5 (patch) | |
| tree | f0d41635190d29623920fdf4732cea7a006632d2 /env/.local/bin/system/start-scripts | |
| parent | 5010e575335939597b05f8d58bdf205c693a8004 (diff) | |
install scripts. reorganization. soon to be deployable
Diffstat (limited to 'env/.local/bin/system/start-scripts')
| -rwxr-xr-x | env/.local/bin/system/start-scripts/autostart.sh | 63 | ||||
| -rwxr-xr-x | env/.local/bin/system/start-scripts/lessons-loop.sh | 7 | ||||
| -rwxr-xr-x | env/.local/bin/system/start-scripts/newsboat-fetch.sh | 16 |
3 files changed, 86 insertions, 0 deletions
diff --git a/env/.local/bin/system/start-scripts/autostart.sh b/env/.local/bin/system/start-scripts/autostart.sh new file mode 100755 index 0000000..3d1d1d6 --- /dev/null +++ b/env/.local/bin/system/start-scripts/autostart.sh @@ -0,0 +1,63 @@ +#!/bin/bash +extra=0 +if [ "$(cat /etc/hostname)" == "Kasino" ]; then + extra=0 +fi +if [ "$(cat /etc/hostname)" == "Witchen" ]; then + extra=1 +fi + +sleep 0.1 +xset s 0 +nitrogen --restore & +if [ $extra == 1 ]; then + xrandr --dpi 90 & + xrandr --output Virtual-1 --mode 1920x1080 +fi + +if [ -z "$WAYLAND_DISPLAY "]; then + xcompmgr & +fi + +if [ $extra == 1 ]; then + if [ -z $(pgrep -f stbar.sh) ]; then + # ~/stuff/scripts/system/stbar/stbar.sh & + echo hall + fi +fi + +pipewire & disown +if [ -z $(pgrep wireplumber) ]; then + wireplumber & disown +fi +pipewire-pulse & disown +sleep 0.5s + +if [ -z $(pgrep -f newsboat-fetch.sh) ]; then + ~/.config/dwm/newsboat-fetch.sh & +fi +if [ -z $(pgrep -f lessons-loop.sh) ]; then + ~/.config/dwm/lessons-loop.sh & +fi + +if [ -z $(pgrep wezterm) ]; then + sleep 2 + wezterm -e ~/stuff/scripts/system/task.sh & +fi + +if [ "$(cat /etc/hostname)" == "Kasino" ]; then + if [ -z "$(pgrep vesktop)" ]; then + sleep 2s + flatpak run dev.vencord.Vesktop & disown + fi + + if [ -z "$(pgrep gajim)" ]; then + sleep 2s + gajim & disown + fi + + if [ -z "$(pgrep steam)" ]; then + sleep 3s + steam & disown + fi +fi diff --git a/env/.local/bin/system/start-scripts/lessons-loop.sh b/env/.local/bin/system/start-scripts/lessons-loop.sh new file mode 100755 index 0000000..b292c65 --- /dev/null +++ b/env/.local/bin/system/start-scripts/lessons-loop.sh @@ -0,0 +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 + newsboat_loop +} +newsboat_loop diff --git a/env/.local/bin/system/start-scripts/newsboat-fetch.sh b/env/.local/bin/system/start-scripts/newsboat-fetch.sh new file mode 100755 index 0000000..5534489 --- /dev/null +++ b/env/.local/bin/system/start-scripts/newsboat-fetch.sh @@ -0,0 +1,16 @@ +#!/bin/bash +newsboat_loop(){ + newsboat -x reload + #newsboat -x print-unread | xargs -0 notify-send "newsboat feed" + + unreads=$(newsboat -x print-unread) + unreadnum=$(printf "$unreads" | sed 's/ .*//g') + + if (( $unreadnum > 0 )); then + notify-send "newsboat feed" "$unreads" + fi + notify-send "Vitamins!" "take them" + sleep 2h + newsboat_loop +} +newsboat_loop |
