aboutsummaryrefslogtreecommitdiff
path: root/.xinitrc
blob: d7cdb8f88beb3352fc6b6b11b2e7ef54920e6cdc (plain) (blame)
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
#!/bin/sh
[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources
redshift -m REDSHIFT_MODE  -l 44.22:-76.48 -t 6500:2500 &
${HOME}/bin/icd
# xcompmgr &
trayer --tint black --edge top --SetDockType true --SetPartialStrut true \
  --expand true --width 10 --transparent true --height 12 --align right &
${HOME}/.dzen/battery.sh &
pavucontrol &
urxvtd -q -f -o &
urxvtc &
${HOME}/.screenlayout/SCREENLAYOUT.sh && nitrogen --restore
if [ "PULSE" = "True" ]; then
    sh bin/startaudio &
fi

# Synaptics:
synclient HorizTwoFingerScroll=0 || true
synclient HorizEdgeScroll=1 || true
# Enable circular scrolling with top edge activating
synclient CircularScrolling=1 || true
synclient CircScrollTrigger=1 || true
# One finger is left click
synclient TapButton1=1 || true
# Two is right click
synclient TapButton2=3 || true
# Three is middle click
synclient TapButton3=2 || true
# Enable coasting
synclient CoastingSpeed=5
synclient CoastingFriction=30

trackball=$(xinput | grep "Kensington Expert Wireless TB" | sed -e 's/.*id=//g;s/ .*//g')
if [ "x${trackball}" != "x" ]; then
    xinput set-button-map "${trackball}" 1 2 8 4 5 6 7 3 9 10 11 12 13 14 15 16
    xinput set-prop "${trackball}" "libinput Accel Speed" 0.25
fi

exec /usr/bin/xmonad