-
Notifications
You must be signed in to change notification settings - Fork 3
/
.xinitrc
executable file
·75 lines (70 loc) · 1.63 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/sh
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
numlockx &
#setxkbmap -layout "us,cz" -option "grp:alt_shift_toggle" -variant ",qwerty" &
configure_dpi
xrdb -merge ~/.Xresources
# X11 environment variables exports
#export QT_STYLE_OVERRIDE=kvantum
export QT_QPA_PLATFORMTHEME=qt5ct
export DESKTOP_SESSION=plasma
#export DESKTOP_SESSION=gnome
export XDG_CURRENT_DESKTOP=kde
#export XDG_CURRENT_DESKTOP=GNOME
export XDG_CONFIG_HOME=$HOME/.config
export XDG_CACHE_HOME=$HOME/.cache
export EDITOR=lvim
export JAVA_HOME=/usr/lib/jvm/default
# clipmenu rofi support
export CM_LAUNCHER=rofi
export CM_HISTLENGTH=30
export CM_DIR=~/.config/clipmenu
# Here AwesomeWM is kept as default
session=${1:-awesome}
case $session in
i3|i3wm)
exec i3
;;
awesome)
xrandr-auto.sh
exec awesome
;;
kde)
export XDG_CURRENT_DESKTOP=KDE
exec startplasma-x11
;;
kde-wayland)
export XDG_SESSION_TYPE=wayland
exec startplasma-wayland
;;
gnome)
export XDG_CURRENT_DESKTOP=GNOME
export DESKTOP_SESSION=gnome
exec gnome-session
;;
qtile)
export XDG_SESSION_TYPE=wayland
exec qtile start -b wayland
;;
bspwm)
exec bspwm
;;
dwm)
exec dwm
;;
herbstluftwm)
exec herbstluftwm
;;
xfce|xfce4)
exec startxfce4
;;
openbox)
export XDG_SESSION_TYPE=x11
exec openbox-session
;;
# No known session, try to run it as command
*)
exec $1
;;
esac