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 |
7b898004 | 18 | # xrdb -merge ~/.base16-tomorrow.dark.256.xresources |
37cd1e87 | 19 | xrdb -merge ~/.gotham.xresources |
909e0988 AB |
20 | # xrdb -merge ~/.hybrid.xresources |
21 | # xrdb -merge ~/.dawn.xresources | |
af393530 | 22 | # xrdb -merge ~/.zenburn.xresources |
37cd1e87 | 23 | # xrdb -merge ~/.solarized-dark.xresources |
73cd9ce5 AB |
24 | |
25 | # set the cursor icon | |
dcbfb16d | 26 | # xsetroot -cursor_name left_ptr & |
73cd9ce5 AB |
27 | |
28 | # set the wallpaper | |
dcbfb16d | 29 | # sh ~/.fehbg & |
73cd9ce5 AB |
30 | |
31 | # font stuff | |
dcbfb16d AB |
32 | # xset +fp /usr/share/fonts/local |
33 | # xset +fp ~/.fonts | |
34 | # xset fp rehash | |
35 | # xset b off | |
73cd9ce5 AB |
36 | |
37 | # the compositor | |
3c7e52b1 | 38 | #compton & |
73cd9ce5 AB |
39 | |
40 | # xbacklight -set 50 | |
41 | ||
42 | # synaptics (touchpad) configs | |
3aeeb20d AB |
43 | synclient TapButton2=3 |
44 | synclient TapButton3=2 | |
45 | synclient HorizTwoFingerScroll=1 | |
46 | synclient VertScrollDelta=-237 | |
47 | synclient HorizScrollDelta=-237 | |
73cd9ce5 AB |
48 | |
49 | # swap caps lock and esc | |
d0c8be2e | 50 | setxkbmap -option caps:swapescape |
3aeeb20d | 51 | |
faafd14a AB |
52 | # MPD daemon start (if no other instance exists) |
53 | [ -z $(pidof mpd) ] && mpd & | |
54 | ||
3aeeb20d | 55 | # screen powersave |
dcbfb16d AB |
56 | # xset +dpms |
57 | # xset dpms 0 0 300 | |
73cd9ce5 AB |
58 | |
59 | # lock the screen using lightdm after 5 minutes | |
dcbfb16d | 60 | # xautolock -time 5 -locker "slimlock" & |
73cd9ce5 | 61 | |
fe8d2ea9 AB |
62 | # adjust the keypress delays |
63 | xset r rate 200 20 | |
3aeeb20d AB |
64 | |
65 | # exec gnome-session | |
66 | # exec startkde | |
73cd9ce5 | 67 | # exec startxfce4 |
3aeeb20d | 68 | # ...or the Window Manager of your choice |
dcbfb16d | 69 | # source ~/.profile |
1576a8fc AB |
70 | xfsettingsd & |
71 | xfdesktop --disable-wm-check & | |
72 | xfce4-panel --disable-wm-check & | |
47babb65 | 73 | bspwm & |
de2c0972 | 74 | sxhkd & |
af057af1 | 75 | sleep 2 && pnmixer & |
dcbfb16d AB |
76 | # panel & |
77 | ||
78 | # DEFAULTSESSION=bspwm | |
79 | # case "$1" in | |
80 | # i3) exec i3;; | |
81 | # bspwm) exec bspwm;; | |
82 | # *) exec $DEFAULTSESSION ;; | |
83 | # esac | |
84 |