summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/03-silverfire-fixes
blob: 25155ad69273ec21d56532f10c4d85d00b7638ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/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

# set compiz splash
    if [ -e /etc/skel/.config/compiz/compizconfig/Default.ini ]; then
        sed -i 's/splash_background_spitfire.png/splash_background_silverfire.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

# hotfix for some dell machines causing 100% cpu load with dell bluetooth enabled
    if [ -e /lib/udev/rules.d/97-hid2hci.rules ]; then
	sed -i -e "s|ATTR{bInterfaceClass}==\"03\"|ACTION==\"add\", ATTR{bInterfaceClass}==\"03\"|g" /lib/udev/rules.d/97-hid2hci.rules
    fi

# hotfix lxde pcmanfm compress broken with xarchiver
    if [ -e /usr/share/libfm/archivers.list ]; then
	sed 's/create=xarchiver --add-to %F/create=xarchiver --compress %F/' -i /usr/share/libfm/archivers.list
    fi
fi