-
Notifications
You must be signed in to change notification settings - Fork 1
/
.xinitrc
35 lines (31 loc) · 673 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
#!/usr/bin/env bash
# For Nvidia-Optimus
### just use the nvidia driver
# xrandr --setprovideroutputsource modesetting NVIDIA-0
# xrandr --auto
#
# ### Optimus Manager
# /usr/bin/prime-offload
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
xtouchpad
xkeymaps
xcursor
### Session
session=${1:-bspwm}
case $session in
gnome )
# XORG-GNOME
export XDG_SESSION_TYPE=x11
export GDK_BACKEND=x11
exec gnome-session
;;
xfce|xfce4 ) exec xfce4-session ;;
lxqt ) exec startlxqt ;;
bspwm ) exec bspwm ;;
* ) exec "$1" ;;
esac