-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathxinitrc
37 lines (27 loc) · 803 Bytes
/
xinitrc
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
#!/bin/bash
resources=$HOME/.Xresources
test -f $resources && xrdb -merge $resources
case "$WM" in
# Having picom started prevents Plasma from starting its compositor
startplasma-x11) ;;
*)
picom &
;;
esac
# termite &
# feh --bg-fill https://wrya.net/services/wallpaper/4chan.php &
# xrandr --listmonitors | awk -F' ' '/^Monitors:/ { print }'
bgset=$HOME/.local/bin/setbackground
[ -x $bgset ] && $bgset &
BROWSER=xdg-open
export BROWSER
export XCURSOR_THEME=breeze_cursor
export XCURSOR_SIZE=48
# We have this last to allow overrides to the above specified
# defaults.
[[ -f ~/.profile ]] && . ~/.profile
systemctl import-environment --user DISPLAY
systemctl start --user graphical-session.target 2>/dev/null &
# Final fallback for WM, and start it.
export WM=${WM:-xmonad}
exec $WM