From b1645568b2c0d1b5450ff7fb04e4ef2c71d352cd Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Tue, 12 Jun 2018 16:53:25 -0400 Subject: improvements --- dot/xinitrc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'dot/xinitrc') diff --git a/dot/xinitrc b/dot/xinitrc index 796fb15..569464a 100755 --- a/dot/xinitrc +++ b/dot/xinitrc @@ -1,5 +1,10 @@ #!/bin/bash +exec .xsession-errors 2>&1 set -x +# eval $(dbus-autolaunch) +[ "$XDG_RUNTIME_DIR" ] || export XDG_RUNTIME_DIR=/run/user/"$(id -u)" +[ "$DBUS_SESSION_BUS_ADDRESS" ] || export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus + USING_GNOME= if [ -r "$XAUTHORITY" -a ! "$XAUTHORITY" -ef "$HOME"/.Xauthority ]; then ln -sf "$XAUTHORITY" "$HOME"/.Xauthority @@ -7,6 +12,7 @@ if [ -r "$XAUTHORITY" -a ! "$XAUTHORITY" -ef "$HOME"/.Xauthority ]; then fi warn() { xmessage ".xinitrc: Warning: $*" & } xrdb -merge ~/.Xresources || warn "xrdb returned $?" +xbindkeys # if [ "$USING_GNOME" ]; then # xrdb -merge - <<'END' || warn "xrdb returned $?" @@ -20,6 +26,12 @@ 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']" +# 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 +# c.f: +# http://www.mepis.org/docs/en/index.php?title=Configuring_the_touchpad_with_xinput +# pad corners rt rb lt lb tap fingers 1 2 3 (can't simulate more then 2 tap fingers AFAIK) - values: 0=disable 1=left 2=middle 3=right etc. (in FF 8=back 9=forward) + ( exec xterm -e tmux attach ) & @@ -29,5 +41,5 @@ if [ "$USING_GNOME" ]; then else (exec xmonad || exec fluxbox) & fi -exec perl -MPOSIX -e pause +exec perl -e 'wait while 1' xterm # if exec fails -- cgit v1.2.3