diff options
author | Holger Paradies <retabell@gmx.de> | 2019-04-28 14:55:43 +0200 |
---|---|---|
committer | Holger Paradies <retabell@gmx.de> | 2019-04-28 18:39:24 +0200 |
commit | faa0d7c93ce9ca9e6123d3cfaa021b53ad73cfbd (patch) | |
tree | 36a694db6920a92d956688a10f912945daf1a2d2 /config/chroot_local-hooks | |
parent | ff91f5f0e72f940d0ac2f9a43cc00523516d301e (diff) | |
download | kanotix-faa0d7c93ce9ca9e6123d3cfaa021b53ad73cfbd.zip kanotix-faa0d7c93ce9ca9e6123d3cfaa021b53ad73cfbd.tar.gz |
silverfire fixes
enable tapping update powermanager config
Diffstat (limited to 'config/chroot_local-hooks')
-rwxr-xr-x | config/chroot_local-hooks/03-silverfire-fixes | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/03-silverfire-fixes b/config/chroot_local-hooks/03-silverfire-fixes new file mode 100755 index 0000000..6062bda --- /dev/null +++ b/config/chroot_local-hooks/03-silverfire-fixes @@ -0,0 +1,46 @@ +#!/bin/sh +for file in /root/config/*; do [ -r $file ] && . $file; done + +if [ "$LB_DISTRIBUTION" = "buster" ]; 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 gtk2 theme + sed -i s/Industrial/Clearlooks-Phenix/ /etc/skel/.gtkrc-2.0 + echo 'gtk-theme-name="Clearlooks-Phenix"' >>/etc/skel/.gtkrc-2.0 + ln -s .gtkrc-2.0 /etc/skel/.gtkrc-2.0-kde4 + + +# powermanager fix new values for 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 +fi |