summaryrefslogtreecommitdiff
path: root/.config/autostart/autostart.sh
blob: 45592ecea91f28203a6616c63f3ca8025cee05b7 (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
#!/bin/bash

WALLPAPER=~/wallpapers/library-fantasy-tree.jpg

start-picom() {
    if pgrep -x "picom" >/dev/null; then
	echo "picom is already running"
    else
	picom
    fi;
}

set-wallpaper() {
    if [ $HOSTNAME == zeus ]; then
	xwallpaper --focus $WALLPAPER --screen 0
    else
	xwallpaper --focus $WALLPAPER
    fi
}

get-started() {
    (
	start-picom &
	set-wallpaper &
	syncthing --no-browser &
	transmission-daemon &	
	setxkbmap us -option ctrl:swapcaps
    )

}


get-started;