From 06482b998ae07c65b0d72a5ea4b90ac6eca351ec Mon Sep 17 00:00:00 2001 From: Holger Paradies Date: Sat, 2 Mar 2024 09:02:23 +0100 Subject: Add bookworm fixes chroot --- config/chroot_local-hooks/03-bookworm-su-fix | 9 ++++ config/chroot_local-hooks/03-slowfire-fixes | 77 ++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100755 config/chroot_local-hooks/03-bookworm-su-fix create mode 100755 config/chroot_local-hooks/03-slowfire-fixes diff --git a/config/chroot_local-hooks/03-bookworm-su-fix b/config/chroot_local-hooks/03-bookworm-su-fix new file mode 100755 index 0000000..1fa76be --- /dev/null +++ b/config/chroot_local-hooks/03-bookworm-su-fix @@ -0,0 +1,9 @@ +#!/bin/sh +for file in /root/config/*; do [ -r $file ] && . $file; done + +if [ "$LB_DISTRIBUTION" = "bookworm" ]; then + +# force old su behaviour +echo "ALWAYS_SET_PATH yes" >>/etc/default/su + +fi diff --git a/config/chroot_local-hooks/03-slowfire-fixes b/config/chroot_local-hooks/03-slowfire-fixes new file mode 100755 index 0000000..c9f38b1 --- /dev/null +++ b/config/chroot_local-hooks/03-slowfire-fixes @@ -0,0 +1,77 @@ +#!/bin/sh +for file in /root/config/*; do [ -r $file ] && . $file; done + +if [ "$LB_DISTRIBUTION" = "bookworm" ]; then + +# Remove 4 plasma icons added by taskmanager + +if [ -f /usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/config/main.xml ]; then + sed -i 's/applications:systemsettings.desktop,applications:org.kde.discover.desktop,preferred:\/\/filemanager,preferred:\/\/browser//' /usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/config/main.xml +fi + +# enable tapping + +mkdir -p /etc/X11/xorg.conf.d + +cat <<"EOF" >/etc/X11/xorg.conf.d/40-libinput.conf +Section "InputClass" + Identifier "libinput touchpad catchall" + MatchIsTouchpad "on" + MatchDevicePath "/dev/input/event*" + Driver "libinput" + Option "Tapping" "on" + #Option "DisableWhileTyping" "1" +EndSection +EOF + +# set gtk3 theme +mkdir -p /etc/skel/.config/gtk-3.0 +cat <<"EOF" >/etc/skel/.config/gtk-3.0/settings.ini +[Settings] +gtk-theme-name = Clearlooks-Phenix +EOF + +# set gtk2 theme +mkdir -p /etc/skel +cat <<"EOF" >/etc/skel/.gtkrc-2.0 +gtk-theme-name = "Clearlooks-Phenix" +EOF + +# powermanager fix new values since buster + +mkdir -p /etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml +cat <<"EOF" >/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml + + + + + + + + + + + + + + +EOF + +# set compiz splash + if [ -e /etc/skel/.config/compiz/compizconfig/Default.ini ]; then + sed -i 's/splash_background_spitfire.png/splash_background_speedfire.png/' /etc/skel/.config/compiz/compizconfig/Default.ini + fi + +# hotfix lxde dead flag + if [ -e /usr/share/lxpanel/images/xkb-flags/de.png ]; then + cd /usr/share/lxpanel/images/xkb-flags + ln -s de.png "de(nodeadkeys).png" + cd - + fi + +# annoying workaround for hpaio (disable prompt for root password in installed system) + if [ -e /etc/sane.d/dll.d/hplip ]; then + sed -i 's/^hpaio/#hpaio/' /etc/sane.d/dll.d/hplip + fi + +fi -- cgit v1.0