dotfiles
Seven years worth of accumulated configuration cruft
dotfiles/xorg/.xsession
Download raw file: xorg/.xsession
# Stuff I want to run whenever any WM or DE is started. # Send the stdout and stderr of all programs to a designated log file # for this session DATE="$(date +'%Y-%m-%d_%H:%M')" # XSESSION_LOG="$XDG_DATA_HOME/xorg/${DATE}_xsession.log" # mkdir -p "$(dirname "$XSESSION_LOG")" # export $XSESSION_LOG # ...this causes things to hang # exec >"$XSESSION_LOG" 2>&1 # Don't beep at me xset b off # Disable ThinkPad touchpad xinput disable "$(xinput list | awk '/TouchPad/{sub(/id=/, "", $6); print $6}')" # Make trackpoint move faster xinput set-prop "$(xinput list | awk '/TrackPoint/{sub(/id=/, "", $6); print $6}')" 'libinput Accel Speed' 1 # Scroll with ThinkPad middle button in OpenBSD [ "$(uname)" = "OpenBSD" ] && { 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 } # Load Xresources xrdb -merge ~/.config/xorg/Xresources # Set caps lock to control, left control to compose, and menu to super # See /usr/share/X11/xkb/rules/base.lst for options setxkbmap -option ctrl:nocaps setxkbmap -option compose:lctrl setxkbmap -option altwin:menu_win # Start 8bloat command -v 8b >/dev/null \ && [ -f "$XDG_CONFIG_HOME"/bloat/bloat.conf ] \ && mkdir -p "$XDG_DATA_HOME"/bloat \ && 8b -f "$XDG_CONFIG_HOME"/bloat/bloat.conf \ > "$XDG_DATA_HOME/bloat/${DATE}_bloat".log 2>&1 # Must be set in order to use quicklisp from stumpwm config export SBCL_HOME=/usr/local/lib/sbcl # Nheko needs a dbus keyring pass-secrets & # Apparently it never occured to Lenovo's Thinkpad team that the low # battery indicator might be more useful on the front rather than the # back of the lid... batdaemon & xscreensaver & # exec dbus-run-session -- i3 exec dbus-run-session -- icewm-session