aboutsummaryrefslogtreecommitdiff
path: root/xinitrc
blob: fa8e14d3b75c2e66c4c514340880b5e494733827 (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
#!/bin/sh

[ -d /etc/X11/xinit/xinitrc.d ] && \
	for f in /etc/X11/xinit/xinitrc.d/*; do [ -x "$f" ] && . "$f"; done && unset f

[ -r ~/.wallpaper/default ] && \
	feh --bg-fill --no-fehbg ~/.wallpaper/default || \
	feh --recursive --randomize --bg-fill --no-fehbg ~/.wallpaper

setxkbmap \
	-layout 'us(altgr-intl),de(nodeadkeys)' \
	-option 'grp:shifts_toggle,compose:menu'
xmodmap ~/.us-intl-german.xmodmap

if [ "$(command -v uim-xim >/dev/null >&2)" ]; then
	export GTK_IM_MODULE="uim"
	export QT_IM_MODULE="uim"
	export XMODIFIERS="@im=uim"
fi

xrdb -merge ~/.Xresources
xset b off

xinput --set-prop 'Razer Razer Salmosa' 'libinput Accel Speed' -0.7 >/dev/null 2>&1

# color temperature
command -v sct >/dev/null 2>&1 && sct 4400

exec runsvdir -P ~/service.x 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'