aboutsummaryrefslogtreecommitdiff
path: root/xinit.sh
blob: 718b53a8b87abd9748afdf20ec429f7468d96ec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# To be run by the window manager or desktop environment when starting an X session
xrdb ~/.Xresources
pgrep -x picom || picom -b
pgrep -x dunst || dunst &
xset -b
pgrep -x unclutter || unclutter --idle 1 &
#touchpad.sh
initialLayout.sh
setInitialWP.sh
pgrep -x sxhkd || sxhkd >~/logs/sxhkd.log &

# Swap Escape and Caps except when Kyria keyboard is connected
if lsusb | grep -Fq 'Kyria'; then
	setxkbmap -layout es
else
	setxkbmap -layout es -option caps:swapescape
fi