Commit | Line | Data |
---|---|---|
3aeeb20d AB |
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 | ||
73cd9ce5 | 14 | # workaround for some java apps, when running a non-reparenting window manager |
22611512 AB |
15 | export _JAVA_AWT_WM_NONREPARENTING=1 |
16 | ||
3aeeb20d | 17 | xrdb -merge ~/.Xresources |
73cd9ce5 AB |
18 | |
19 | # set the cursor icon | |
20 | xsetroot -cursor_name left_ptr & | |
21 | ||
22 | # set the wallpaper | |
b176d960 | 23 | sh ~/.fehbg & |
73cd9ce5 AB |
24 | |
25 | # font stuff | |
3aeeb20d AB |
26 | xset +fp /usr/share/fonts/local |
27 | xset +fp ~/.fonts | |
28 | xset fp rehash | |
29 | xset b off | |
73cd9ce5 AB |
30 | |
31 | # the compositor | |
3af214ef | 32 | compton & |
73cd9ce5 AB |
33 | |
34 | # xbacklight -set 50 | |
35 | ||
36 | # synaptics (touchpad) configs | |
3aeeb20d AB |
37 | synclient TapButton2=3 |
38 | synclient TapButton3=2 | |
39 | synclient HorizTwoFingerScroll=1 | |
40 | synclient VertScrollDelta=-237 | |
41 | synclient HorizScrollDelta=-237 | |
73cd9ce5 AB |
42 | |
43 | # swap caps lock and esc | |
d0c8be2e | 44 | setxkbmap -option caps:swapescape |
3aeeb20d | 45 | |
faafd14a AB |
46 | # MPD daemon start (if no other instance exists) |
47 | [ -z $(pidof mpd) ] && mpd & | |
48 | ||
3aeeb20d AB |
49 | # screen powersave |
50 | xset +dpms | |
51 | xset dpms 0 0 300 | |
73cd9ce5 AB |
52 | |
53 | # lock the screen using lightdm after 5 minutes | |
54 | xautolock -time 5 -locker "dm-tool lock" & | |
55 | ||
3aeeb20d AB |
56 | |
57 | # exec gnome-session | |
58 | # exec startkde | |
73cd9ce5 | 59 | # exec startxfce4 |
3aeeb20d | 60 | # ...or the Window Manager of your choice |
73cd9ce5 AB |
61 | # source ~/.profile |
62 | # sxhkd & | |
63 | # panel & | |
64 | ||
65 | # DEFAULTSESSION=bspwm | |
66 | # case "$1" in | |
67 | # i3) exec i3;; | |
68 | # bspwm) exec bspwm;; | |
69 | # *) exec $DEFAULTSESSION ;; | |
70 | # esac |