-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
executable file
·35 lines (27 loc) · 941 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
#!/bin/sh
# startup services for display sessions
dbus-update-activation-environment --all
xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & xrdbpid=$! # use Xresources colors/settings on startup
setbg --stretch & # set background
# xrandr --dpi 102 # Set DPI.
xorg.sh # fixes keyboard assshittery
xsetroot -cursor_name left_ptr # ensures correct cursor on X root window
unclutter --ignore-scrolling --start-hidden &
sxhkd &
picom &
opensnitch-ui &
# Ensure that xrdb has finished running before moving on to start the WM/DE.
[ -n "$xrdbpid" ] && wait "$xrdbpid"
# Now start the desktop
session=${1:-awesome}
case $session in
qtile) exe=qtile ;;
awm | awesome) exe=awesome ;;
kde | plasma) exe=startplasma-x11 ;;
xfce | xfce4) exe=startxfce4 ;;
bspwm) exe=bspwm ;;
# No known session, try to run it as command
*) exe="$1" ;;
esac
mkdir -p "$HOME/.cache/desktop-logs"
exec $exe >"$HOME/.cache/desktop-logs/log-$(date +%s)" 2>&1