aboutsummaryrefslogtreecommitdiff
path: root/.local/etc/x/xinitrc
blob: ccb21f3fc5338154ac6d747df4f805df88035674 (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
#!/bin/sh

# set the default mousepointer
xsetroot -cursor_name left_ptr

# load the .Xresources
if command -v xrdb > /dev/null
then
	xrdb -merge ~/.Xresources
fi

# 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"

# Export variables for a better X11 experience
export WINIT_X11_SCALE_FACTOR=1

# Import X11 environment for systemd
systemctl --user import-environment \
	DISPLAY \
	WINIT_X11_SCALE_FACTOR \
	XAUTHORITY