summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2022-05-06 03:31:17 -0400
committerAndrew Cady <d@jerkface.net>2022-10-09 13:53:09 -0400
commit39f9e385d61100dfc30ca42e7cddf9abb74c41b4 (patch)
treea76af36066f1169b77c0e1d2e737a255b7341053
parent431eda98ccd397a53fbf2eda9bc9f51502250a95 (diff)
remove xinitrc
-rwxr-xr-xdot/xinitrc49
1 files changed, 0 insertions, 49 deletions
diff --git a/dot/xinitrc b/dot/xinitrc
deleted file mode 100755
index fcfa00c..0000000
--- a/dot/xinitrc
+++ /dev/null
@@ -1,49 +0,0 @@
1#!/bin/bash
2exec </dev/null >.xsession-errors 2>&1
3set -x
4# eval $(dbus-autolaunch)
5[ "$XDG_RUNTIME_DIR" ] || export XDG_RUNTIME_DIR=/run/user/"$(id -u)"
6[ "$DBUS_SESSION_BUS_ADDRESS" ] || export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus
7
8USING_GNOME=
9if [ -r "$XAUTHORITY" -a ! "$XAUTHORITY" -ef "$HOME"/.Xauthority ]; then
10 ln -sf "$XAUTHORITY" "$HOME"/.Xauthority
11 XAUTHORITY="$HOME"/.Xauthority
12fi
13warn() { xmessage ".xinitrc: Warning: $*" & }
14xrdb -merge ~/.Xresources || warn "xrdb returned $?"
15xbindkeys
16
17# if [ "$USING_GNOME" ]; then
18# xrdb -merge - <<'END' || warn "xrdb returned $?"
19# ! apparently gnome is setting the bg/fg color of xterm using other things...
20# xterm*reverseVideo: false
21# END
22# fi
23
24# no gnome:
25setxkbmap -option terminate:ctrl_alt_bksp -option caps:super
26# gnome:
27gsettings set org.gnome.libgnomekbd.keyboard options "['terminate\tterminate:ctrl_alt_bksp', 'caps\tcaps:super']"
28
29# Disable thinkpad middle-click+trackpoint scrolling
30xinput set-prop 'TPPS/2 IBM TrackPoint' 'libinput Scroll Method Enabled' 0 0 0
31
32# Enable tap-to-click
33xinput --set-prop --type=int --format=8 "SynPS/2 Synaptics TouchPad" "Synaptics Tap Action" 0 0 0 0 1 2 3
34# c.f:
35# http://www.mepis.org/docs/en/index.php?title=Configuring_the_touchpad_with_xinput
36# 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)
37
38
39(
40 exec xterm -e tmux attach
41) &
42# xcompmgr -c &
43if [ "$USING_GNOME" ]; then
44 exec gnome-session-xmonad
45else
46 (exec xmonad || exec fluxbox) &
47fi
48exec perl -e 'wait while 1'
49xterm # if exec fails