commit b9d2adcd34b1db09efb352d8fa9b8d13545c6542
parent 2b11198180010d396bbf53826682ec139a8e846c
Author: Jaron Swab <jaron@swab.dev>
Date: Thu, 21 Oct 2021 12:05:08 -0400
added set-prop for lenovo middle button scroll
Diffstat:
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/.xsession b/.xsession
@@ -1,5 +1,14 @@
#!/bin/sh
+# use UTF-8 everywhere
+export LANG=en_US.UTF-8
+
+# For ThinkPad, the following lines enable TrackPoint
+# scrolling by dragging with the middle button.
+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
+
# Run xrandr based on current inputs:
VGA1=$(xrandr | awk '/VGA-1/ { print $2 }')
if [ "$VGA1" = "connected" ]; then
@@ -16,7 +25,8 @@ feh --bg-fill "$HOME"/pictures/backgrounds/retro_astro.jpg
# Set keyboard layout variant to Programmer Dvorak:
setxkbmap -variant dvp;
-#$HOME/bin/breto --dwm=true --battery=true > /dev/null 2>&1 &
+# Display system information:
+"$HOME"/repos/sstatus/main.sh &
if [ "$DWM" -eq 1 ]; then
exit 0; # Stop here if $DWM is already set to 1
@@ -24,4 +34,6 @@ fi
export DWM=1;
"$HOME"/repos/dwm/dwm
+
+# The default window manager for OpenBSD. (Fallback for DWM misconfiguration)
#fvwm