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

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

set-wallpaper() {
    if [ $HOSTNAME == zeus ]; then
	feh --bg-scale ~/wallpapers/cyberpunk-red.png
    else
	feh --bg-scale ~/wallpapers/library-fantasy-tree.jpg
    fi
}

get-started() {
    (
	start-picom
	set-wallpaper
	## set keyboard
	setxkbmap us -option ctrl:swapcaps &
    )

}


get-started