summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-04-20 21:05:51 +0300
committerThanos Apollo <[email protected]>2024-04-20 21:05:51 +0300
commit86075d155af29bd2637716276793d33e365a1008 (patch)
tree98daed1cb476fb5b545e119d4d803e897a41d72e /.config
parent654e0855904600dcbed0dd356cecd68acc849b50 (diff)
Update autostart
Diffstat (limited to '.config')
-rwxr-xr-x.config/autostart/autostart.sh26
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