#!/bin/bash -e

apt-get install -y onboard dconf-cli dbus-x11 at-spi2-core mousetweaks acpid

install -d "/usr/share/onboard/"
install -v "$FILE_FOLDER"/onboard.dconf "/usr/share/onboard/"
install -v "$FILE_FOLDER"/a11y.dconf "/usr/share/onboard/"

## Dconf injection on the first boot + self commenting sed replace.
install -d -o 1000 -g 1000 /home/user/.config/openbox/

install -d -o 1000 -g 1000 /home/user/.local/share/onboard/themes
sed -e "s#_font></#_font>Sans</#" -e "s#Granite#Charcoal#" /usr/share/onboard/themes/Droid.theme > /home/user/.local/share/onboard/themes/Droid.theme
install -v /home/user/.local/share/onboard/themes/Droid.theme "/usr/share/onboard/themes"

rm -rf ~/.cache/pip
