sway_startup.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #!/bin/sh
  2. . /home/adam/.config/sh/variables
  3. . /home/adam/.config/sh/aliases
  4. . /home/adam/.config/sh/functions
  5. pgrep network || /home/adam/.local/bin/network &
  6. pgrep battery || /home/adam/.local/bin/battery &
  7. swaybg -i ~/Pictures/wallpapers/1000years.webp -m fill &
  8. # pgrep redshift || redshift -l "$LATITUDE":"$LONGITUDE" &
  9. import_gsettings \
  10. gtk-theme:gtk-theme-name \
  11. icon-theme:gtk-icon-theme-name \
  12. cursor-theme:gtk-cursor-theme-name
  13. pgrep ssh-agent || (ssh-agent > /tmp/ssh-agent.sh && ssh-agent -c > /tmp/ssh-agent.fish)
  14. # swaymsg output HDMI-A-1 bg $(ls /home/adam/Pictures/wallpapers/encrypt/ | sort -R | tail -1) fill
  15. dbus-daemon --session --address=unix:path="$XDG_RUNTIME_DIR/bus" &
  16. pgrep mako || mako &
  17. doas laptop_mode
  18. doas powertop --auto-tune
  19. swayidle -w \
  20. timeout 600 'swaylock -f' \
  21. resume 'swaymsg "output * dpms on"' \
  22. before-sleep 'swaylock -f' &
  23. # festival --server &
  24. #doas /usr/bin/protonvpn c -f
  25. #i=0
  26. #ip l show proton0 > /dev/null 2>&1
  27. #res=$?
  28. #while [ $res -gt 0 ]
  29. #do
  30. # ip l show tun0
  31. # res=$?
  32. # sleep 5
  33. # i=$(qalc -t $i+1)
  34. # [ "$i" -gt 4 ] && exit
  35. #done
  36. mount | grep nextcloud || mount /nextcloud &
  37. # (. ~/Code/dwd/pantalaimon/.venv/bin/activate && pantalaimon &)