-
Notifications
You must be signed in to change notification settings - Fork 0
/
xinitrc
60 lines (54 loc) · 1.54 KB
/
xinitrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env sh
# TODO: Xresources -- http://git.sysphere.org/dotfiles/tree/xinitrc
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
errorlog="${HOME}/.xerrors"
if (cp /dev/null "${errorlog}"); then
chmod 600 "${errorlog}"
exec >"${errorlog}" 2>&1
fi
# Configure I/O
xinput set-prop 11 'Device Enabled' 0 # Disable crap touchpad on x230
xsetroot -cursor_name left_ptr # Pointer apperance
xset m 1/2 1 # Pointer control, acceleration and threshold
unclutter -grab & # Hide cursor when not in use
setxkbmap -option ctrl:swapcaps # Remap capslock and ctrl keys
# TODO: config monitors function...
# EXT="$(xrandr | grep ' connected' | grep -v LVDS1 | cut -f1 -d' ')"
# RES="$(xrandr | grep -A1 """$EXT connected""" | tail -1 | cut -f4 -d' ')"
# [ $EXT ] &&
# xrandr --output LVDS1 \
# --mode 1366x768 \
# --primary \
# --output $EXT \
# --mode $RES \
# --left-of LVDS1;
#
[ "$EXT" ] &&
xrandr --output VGA1 \
--auto \
--output LVDS1 \
--auto \
--right-of VGA;
# Start daemons and services
trayer --edge top \
--align right \
--SetDockType true \
--SetPartialStrut true \
--expand true \
--width 5 \
--height 12 \
--transparent true \
--alpha 0 \
--tint 0x000000 &
pkill dunst; dunst -config "${HOME}/.dunstrc" &
urxvtd --quiet --opendisplay --fork
"${HOME}/.dropbox-dist/dropboxd" &
"${HOME}/bin/esd" &
cd "${HOME}" || exit
xmonad
urxvtc