summaryrefslogtreecommitdiffstats
path: root/.bin/x11-config
diff options
context:
space:
mode:
Diffstat (limited to '.bin/x11-config')
-rwxr-xr-x.bin/x11-config18
1 files changed, 14 insertions, 4 deletions
diff --git a/.bin/x11-config b/.bin/x11-config
index 5230c13..554f00c 100755
--- a/.bin/x11-config
+++ b/.bin/x11-config
@@ -11,7 +11,8 @@ synclient_options="TapButton1=1 \
# synaptic
if command -v syndaemon; then
- pkill syndaemon && syndaemon -RKd -i 0.2
+ pkill syndaemon && true
+ syndaemon -RKd -i 0.1
synclient ${synclient_options}
fi
@@ -24,7 +25,7 @@ xset s off
xset s noblank
xset -dpms
-if [ $(uname -s) = "OpenBSD" ]; then
+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
@@ -34,6 +35,15 @@ fi
xsetroot -mod 2 2 -fg white -bg black
xsetroot -grey
-if [ -f "${wallpaper_file}" ]; then
- feh --bg-scale "${wallpaper_file}"
+monitors="$(xrandr --listactivemonitors | tail -n +2)"
+feh_args=""
+for i in seq $(echo monitors | wc -l); do
+ wallpaper=$(find .local/share/dot -iname "wallpaper*" | shuf -n 1)
+ if [ "${wallaper}" ]; then
+ feh_args="${feh_args} --bg-fill ${wallpaper} "
+ fi
+done
+
+if [ "${feh_args}" ]; then
+ feh ${feh_args}
fi
remember that computers suck.