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