blob: 2d5498f772ab41662a09d23a9d26013b462fa47f (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/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
|