.xinitrc 1008 Bytes
Newer Older
Daniel Wayne Armstrong's avatar
Daniel Wayne Armstrong committed
1
2
#!/bin/sh
userresources=$HOME/.Xresources
Daniel Wayne Armstrong's avatar
save    
Daniel Wayne Armstrong committed
3
userbindkeys=$HOME/.xbindkeysrc
Daniel Wayne Armstrong's avatar
Daniel Wayne Armstrong committed
4
5
usermodmap=$HOME/.Xmodmap

6
7
8
9
# propagate DISPLAY and XAUTHORITY to dbus-daemon and, if present, systemd, 
# and propagate DBUS_SESSION_BUS_ADDRESS to systemd
dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY

Daniel Wayne Armstrong's avatar
Daniel Wayne Armstrong committed
10
11
12
13
14
15
16
# config parameters for X client applications
if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

# bind commands to certain keys or key combos
if [ -f $userbindkeys ]; then
Daniel Wayne Armstrong's avatar
save    
Daniel Wayne Armstrong committed
17
	xbindkeys -p
Daniel Wayne Armstrong's avatar
Daniel Wayne Armstrong committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
fi

# key mappings
if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

# disable system beep
xset b off

# set keyboard layout to colemak
setxkbmap -model pc104 -layout us -variant colemak

# configure trackpoint
if command -v $(xinput list | grep 'TrackPoint' &> /dev/null); then
    xinput set-prop "TPPS/2 IBM TrackPoint" "libinput Accel Speed" 1.0
fi

# janitor
if [ -d ~/.local/share/Trash ]; then
	rm -rf ~/.local/share/Trash/*
fi

# start window manager
exec openbox-session