From 48fb88314fc8dcbf9483d212b2c32ff9d021a744 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Tue, 29 Nov 2022 22:07:10 -0500 Subject: add .xsession --- dot/xsession | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 dot/xsession diff --git a/dot/xsession b/dot/xsession new file mode 100644 index 0000000..91b0ee0 --- /dev/null +++ b/dot/xsession @@ -0,0 +1,26 @@ +#!/bin/bash +xbindkeys + +# no gnome: +setxkbmap -option terminate:ctrl_alt_bksp -option caps:super +# gnome: +gsettings set org.gnome.libgnomekbd.keyboard options "['terminate\tterminate:ctrl_alt_bksp', 'caps\tcaps:super']" + +# Disable thinkpad middle-click+trackpoint scrolling +xinput set-prop 'TPPS/2 IBM TrackPoint' 'libinput Scroll Method Enabled' 0 0 0 + +# Enable tap-to-click +xinput --set-prop --type=int --format=8 "SynPS/2 Synaptics TouchPad" "Synaptics Tap Action" 0 0 0 0 1 2 3 + +if [ "${DISPLAY%.*}" = :0 ] +then + /usr/lib/notification-daemon/notification-daemon & + xterm -e tmux attach & + quassel & + firestartx & +fi +xmonad & + +exec perl -e 'wait while 1' +xterm # if exec fails + -- cgit v1.2.3