diff options
-rwxr-xr-x | .config/autostart/autostart.sh | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/.config/autostart/autostart.sh b/.config/autostart/autostart.sh index 7ebbef4..2d5498f 100755 --- a/.config/autostart/autostart.sh +++ b/.config/autostart/autostart.sh @@ -6,16 +6,36 @@ function start_picom() { pgrep -x picom > /dev/null || picom } +function start_ollama() { + export OLLAMA_HOST=zeus:11434 + pgrep -x ollama > /dev/null || ollama start & +} + +function zeus-monitors (){ + if [ "$HOSTNAME" == "zeus" ]; then + xrandr --output DisplayPort-0 --off --output DisplayPort-1 --mode 2560x1440 --pos 0x0 --rotate normal --output DisplayPort-2 --off --output HDMI-A-0 --mode 2560x1440 --pos 2560x0 --rotate left + fi; +} + function set_wallpaper() { - /home/$USER/.fehbg + if [ "$HOSTNAME" == "zeus" ]; then + xwallpaper --output HDMI-A-0 --stretch '/home/thanos/wallpapers/vetical-space-01.jpg' --output DisplayPort-1 --stretch '/home/thanos/wallpapers/00351.jpg' + else + /home/$USER/.fehbg + fi +} + +function serve-jellyfin-tailscale() { + sudo tailscale serve --bg 8096 ## serve jellyfin } function get_started() { start_picom & set_wallpaper & - syncthing --no-browser & + # syncthing --no-browser & + zeus-monitors & + start_ollama & transmission-daemon & - setxkbmap us -option ctrl:swapcaps } get_started |