swap escape and caps lock
[~bandali/configs] / x / .xinitrc
1 #!/bin/sh
2 #
3 # ~/.xinitrc
4 #
5 # Executed by startx (run your window manager from here)
6
7 if [ -d /etc/X11/xinit/xinitrc.d ]; then
8 for f in /etc/X11/xinit/xinitrc.d/*; do
9 [ -x "$f" ] && . "$f"
10 done
11 unset f
12 fi
13
14 # Enable this for non-reparenting window managers
15 export _JAVA_AWT_WM_NONREPARENTING=1
16
17 xrdb -merge ~/.Xresources
18 xsetroot -cursor_name left_ptr & # set the cursor icon
19 sh ~/.fehbg &
20 xset +fp /usr/share/fonts/local
21 xset +fp ~/.fonts
22 xset fp rehash
23 xset b off
24 #xrdb -merge ~/.theme/base16-thewildhunt.dark.xresources
25 compton &
26 xbacklight -set 50
27 synclient TapButton2=3
28 synclient TapButton3=2
29 synclient HorizTwoFingerScroll=1
30 synclient VertScrollDelta=-237
31 synclient HorizScrollDelta=-237
32 setxkbmap -option caps:swapescape
33
34 # MPD daemon start (if no other instance exists)
35 [ -z $(pidof mpd) ] && mpd &
36
37 # screen powersave
38 xset +dpms
39 xset dpms 0 0 300
40 xautolock -time 5 -locker i3lock-wrapper &
41
42 # exec gnome-session
43 # exec startkde
44 #exec startxfce4
45 # ...or the Window Manager of your choice
46 source ~/.profile
47 sxhkd &
48 panel &
49
50 DEFAULTSESSION=bspwm
51 case "$1" in
52 i3) exec i3;;
53 bspwm) exec bspwm;;
54 *) exec $DEFAULTSESSION ;;
55 esac