-
Notifications
You must be signed in to change notification settings - Fork 0
/
xsession_obsd
63 lines (48 loc) · 1.59 KB
/
xsession_obsd
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
61
62
$!/bin/ksh
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/local/libexec:/usr/libexec:/usr/local/jdk-1.8.0/bin/:/usr/games:/usr/X11R6/bin
export PATH
env LC_CTYPE="en_EN.UTF-8"
# Mouse related
xinput --set-prop 10 243 20
xset mouse 100 5
synclient HorizTwoFingerScroll=1
synclient HorizScrollDelta=15
synclient PalmDetect=1
synclient PalmMinWidth=15
synclient PalmMinZ=30
# Trackpad and trackpoint acceleration respectively
## Scrolling
xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 1
xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Button" 2
xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Axes" 6 7 4 5
## Speeed
xinput set-prop 7 'Device Accel Constant Deceleration' 0.6
xinput set-prop 8 'Device Accel Constant Deceleration' 0.35
# Keyboard related
xset b off
#xset r rate 190 60
xset r rate 300 30
setxkbmap -layout us,fi -option grp:caps_toggle
# Disable screen blanking
xset -dpms
xset s noblank
xset s off
# Load extra fonts
xset fp+ /usr/local/share/fonts/ghostscript
xset fp+ /usr/local/share/fonts/noto
xset fp+ /usr/local/share/fonts/roboto
xset fp+ /usr/local/share/fonts/terminus
xset fp+ /usr/local/share/fonts/Hack
xset fp rehash
if [ -x /usr/local/bin/dbus-launch -a -z "${DBUS_SESSION_BUS_ADDRESS}" ]; then
eval `dbus-launch --sh-syntax --exit-with-session`
fi
xsetroot -solid black
/usr/local/bin/picom -b
xmodmap ~/.Xmodmap
# Lock screen when away or resuming from suspend
/usr/X11R6/bin/xidle -program "/usr/X11R6/bin/xlock" \
-timeout 600 &
/usr/local/libexec/tray-app/sound &
~/bin/monitor_config.sh
eval i3