summaryrefslogtreecommitdiff
path: root/.xinitrc
blob: 74739d873613428901a79ba6fac46244f022486e (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
#!/bin/sh

makepipe() {
    DWM_PIPE="$(mktemp -u)"   || exit
    mkfifo -m0600 "$DWM_PIPE" || exit

    export DWM_PIPE
}

xinit() {
    picom --experimental-backends --config ~/.config/picom/config &
    feh --bg-scale ~/media/background.jpg

    ~/.screenlayout/home.sh

    makepipe

    xbanish &
    status &
}

xfini() {
    rm $DWM_PIPE || echo "failed to cleanup $DWM_PIPE"
}

xinit
exec dwm
xfini