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