#!/bin/bash
# Zorg dat alle nieuwe gebruikers dit thema krijgen
mkdir -p /etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/

# Dit vertelt XFCE welk thema het moet laden
cat <<EOF > /etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xsettings" version="1.0">
  <property name="Net" type="empty">
    <property name="ThemeName" type="string" value="ALinux-Voltron"/>
    <property name="IconThemeName" type="string" value="ALinux-Voltron"/>
  </property>
</channel>
EOF

# Stel het vensterthema (borders) in
cat <<EOF > /etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfwm4" version="1.0">
  <property name="general" type="empty">
    <property name="theme" type="string" value="ALinux-Voltron"/>
  </property>
</channel>
EOF

chmod -R 755 /etc/skel/.config/
exit 0
