#!/bin/bash HOSTNAME=$(hostname) 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() { 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 & zeus-monitors & start_ollama & transmission-daemon & } get_started