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