blob: efd47d7f6cbb7dd5291beaf39ca507431201f255 (
plain) (
tree)
|
|
#!/bin/sh
set -xe
wallpaper_file="${HOME}/.local/share/dot/wallpaper"
synclient_options="TapButton1=1 \
TapButton2=3 \
TapButton3=2 \
PalmDetect=1 \
TouchpadOff=0"
# synaptic
if command -v syndaemon; then
pkill syndaemon && true
syndaemon -RKd -i 0.1
synclient ${synclient_options}
fi
# keyboard
xset r rate 250 75
setxkbmap -option compose:ralt
# screen saving
xset s off
xset s noblank
xset -dpms
if [ $(uname -s) = "OpenBSD" ]; then
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
fi
# background
xsetroot -mod 2 2 -fg white -bg black
xsetroot -grey
if [ -f "${wallpaper_file}" ]; then
feh --bg-scale "${wallpaper_file}"
fi
|