aboutsummaryrefslogtreecommitdiff
path: root/xinit.sh
blob: 349cc5b475b8ac7c1f3cfc16b6afca2effe002fc (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
setRandomWP.sh
pgrep -x sxhkd || sxhkd >~/logs/sxhkd.log &

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