aboutsummaryrefslogtreecommitdiff
path: root/.local/etc/x/xinitrc
blob: df3590fa3c8affe1b155fc48094ce3bd484a5f0c (plain)
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
# start dbus if necessary
[ -f "/etc/X11/xinit/xinitrc.d/80-dbus" ] && source /etc/X11/xinit/xinitrc.d/80-dbus

# start polkit auth agent
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg)
export GNOME_KEYRING_PID
export GNOME_KEYRING_SOCKET
export SSH_AUTH_SOCK

# Export additional environment vars
export WINIT_X11_SCALE_FACTOR=1

# extend the fontpath
xset +fp ~/.fonts/Terminus/BDF
#xset +fp /usr/share/fonts/local

# set the default mousepointer
xsetroot -cursor_name left_ptr

# load the .Xresources
xrdb -merge ~/.Xresources

# Set a custom layout with xrandr
if [ -f "$HOME/.local/etc/x/layout.sh" ]
then
	/bin/sh "$HOME/.local/etc/x/layout.sh"
fi

# xkbmap options
setxkbmap \
	-layout us \
	 \
	-option compose:menu \
	-option caps:escape

# add altgr
xmodmap -e "keycode 108 = ISO_Level3_Shift"

# Enable sound through PulseAudio
pulseaudio --start

# set a wallpaper
chwp &

# Turn off any screen blanking features
xset s off
xset -dpms

# start background processes
redshift -l 51.50:4.59 &
dunst &
sxhkd &

# Set up a screenlock
#xss-lock -- physlock -d &

# Start x11vnc
x11vnc -display "$DISPLAY" &