[qtile] install xinitrc
This commit is contained in:
parent
e61f95a2ee
commit
1321288028
1 changed files with 33 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue