[qtile] install xinitrc

This commit is contained in:
Gwenhael Le Moine 2022-12-02 16:29:44 +01:00
parent e61f95a2ee
commit 1321288028
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -81,6 +81,39 @@ cp resources/qtile-wayland.desktop $PKG$PREFIX/share/wayland-sessions/
mkdir -p $PKG$PREFIX/share/xsessions/ mkdir -p $PKG$PREFIX/share/xsessions/
cp resources/qtile.desktop $PKG$PREFIX/share/xsessions/ cp resources/qtile.desktop $PKG$PREFIX/share/xsessions/
mkdir -p $PKG/etc/X11/xinit/
cat <<EOF > $PKG/etc/X11/xinit/xinitrc.$PRGNAM
#!/bin/sh
userresources=\$HOME/.Xresources
usermodmap=\$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# Merge in defaults and keymaps
if [ -f \$sysresources ]; then
xrdb -merge \$sysresources
fi
if [ -f \$sysmodmap ]; then
xmodmap \$sysmodmap
fi
if [ -f \$userresources ]; then
xrdb -merge \$userresources
fi
if [ -f \$usermodmap ]; then
xmodmap \$usermodmap
fi
# Start qtile
if [ -z "\$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
exec ck-launch-session dbus-launch --exit-with-session qtile start
else
exec dbus-launch --exit-with-session qtile start
fi
EOF
sed -i 's|Exec=qtile start -b wayland|Exec=/usr/bin/start_qtile.sh|' $PKG$PREFIX/share/wayland-sessions/qtile-wayland.desktop sed -i 's|Exec=qtile start -b wayland|Exec=/usr/bin/start_qtile.sh|' $PKG$PREFIX/share/wayland-sessions/qtile-wayland.desktop