summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2021-03-27 16:23:07 +0100
committerHolger Paradies <retabell@gmx.de>2021-03-27 16:23:07 +0100
commit89a61c75a39268877c7b3c865fcd4c8354c30ef5 (patch)
treee62c396f91d205a2cbecd3160fb179927e24b2e7 /config
parent0ce157d4f3605963ee92c506b5f1dbce858e6b74 (diff)
downloadkanotix-89a61c75a39268877c7b3c865fcd4c8354c30ef5.zip
kanotix-89a61c75a39268877c7b3c865fcd4c8354c30ef5.tar.gz
Speedfire hook
Diffstat (limited to 'config')
-rwxr-xr-xconfig/chroot_local-hooks/03-speedfire-fixes67
1 files changed, 67 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/03-speedfire-fixes b/config/chroot_local-hooks/03-speedfire-fixes
new file mode 100755
index 0000000..deafc7a
--- /dev/null
+++ b/config/chroot_local-hooks/03-speedfire-fixes
@@ -0,0 +1,67 @@
+#!/bin/sh
+for file in /root/config/*; do [ -r $file ] && . $file; done
+
+if [ "$LB_DISTRIBUTION" = "bullseye" ]; then
+
+# 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
+<?xml version="1.0" encoding="UTF-8"?>
+
+<channel name="xfce4-power-manager" version="1.0">
+ <property name="xfce4-power-manager" type="empty">
+ <property name="power-button-action" type="uint" value="3"/>
+ <property name="show-tray-icon" type="bool" value="true"/>
+ <property name="lid-action-on-battery" type="uint" value="1"/>
+ <property name="critical-power-action" type="uint" value="1"/>
+ <property name="spin-down-on-battery" type="bool" value="false"/>
+ <property name="lock-screen-suspend-hibernate" type="bool" value="false"/>
+ <property name="brightness-switch-restore-on-exit" type="int" value="1"/>
+ <property name="brightness-switch" type="int" value="0"/>
+ </property>
+</channel>
+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
+
+
+fi