forked from raven2cz/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
executable file
·59 lines (56 loc) · 1.24 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
#!/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" &
xrdb -merge ~/.Xresources
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=nvim
# clipmenu rofi support
export CM_LAUNCHER=rofi
export CM_HISTLENGTH=50
export CM_DIR=~/.config/clipmenu
# Here AwesomeWM is kept as default
session=${1:-awesome}
case $session in
i3|i3wm)
exec i3
;;
awesome)
exec awesome
;;
kde)
exec startplasma-x11
;;
gnome)
export XDG_CURRENT_DESKTOP=GNOME
export DESKTOP_SESSION=gnome
exec gnome-session
;;
qtile)
exec qtile
;;
bspwm)
exec bspwm
;;
dwm)
exec dwm
;;
herbstluftwm)
exec herbstluftwm
;;
xfce|xfce4)
exec startxfce4
;;
# No known session, try to run it as command
*)
exec $1
;;
esac