-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
executable file
·68 lines (54 loc) · 1.71 KB
/
.xinitrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/sh
# Need to add my scripts location to path specifically for Xorg. The PATH is
# set elsewhere for my shell. Without this the top bar 'rt-bar' doesn't work at
# startup and neither do the Spofity keybinding in FVWM which rely on the 'sp'
# script in '~/bin'.
export PATH=$HOME/bin:$PATH
xrdb -load $HOME/.Xresources
xset -b
# Set US keyboard layout and toggle between standard QWERTY and
# Colemak layouts by pressing both CTRL keys together, this is helpful
# when I use my Ergodox keyboard which is configured to do Colemak but
# needs to have the OS set to standard US layout for it to work.
setxkbmap -layout 'us,us' \
-variant 'colemak,' \
-option 'grp:ctrls_toggle,ctrl:nocaps'
# Set media key bindings
xbindkeys
# Set touchpad options
if grep -q 'ID=ubuntu' /etc/os-release && command -v synclient; then
synclient PalmDetect=1 \
PalmMinWidth=8 \
PalmMinZ=100 \
HorizScrollDelta=-111 \
VertScrollDelta=-111 \
HorizEdgeScroll=0 \
VertEdgeScroll=0 \
TapButton1=1 \
TapButton2=0 \
RTCornerButton=0 \
RBCornerButton=0 \
FingerHigh=50 \
PressureMotionMinZ=80
else
xinput set-prop 'Synaptics TM3383-032' 'libinput Tapping Enabled' 1
xinput set-prop 'Synaptics TM3383-032' 'libinput Natural Scrolling Enabled' 1
fi
# Hide cursor when it is not being used
xbanish &
# Set screen locker (10 mins)
xautolock -time 10 -locker slock &
# Start my custom status bar (Lemonbar-xft)
rt-bar &
# Start GPG Agent
gpg-agent --homedir /home/rosstimson/.gnupg --daemon &
# Start rxvt-unicode daemon
urxvtd -q -o -f &
# Start Emacs server/daemon
emacs --daemon &
# Start Dunst for notifications
dunst &
# Set wallpaper
feh --bg-scale ~/Pictures/wallpapers/wallpaper
# WM
fvwm