build/config/desktop/bullseye/environments/mate/debian/postinst

41 lines
1.2 KiB
Plaintext

# overwrite stock lightdm greeter configuration
if [ -d /etc/armbian/lightdm ]; then cp -R /etc/armbian/lightdm /etc/; fi
# Disable Pulseaudio timer scheduling which does not work with sndhdmi driver
if [ -f /etc/pulse/default.pa ]; then sed "s/load-module module-udev-detect$/& tsched=0/g" -i /etc/pulse/default.pa; fi
# set wallpapper to armbian
keys=/etc/dconf/db/local.d/00-desktop
profile=/etc/dconf/profile/user
install -Dv /dev/null $keys
install -Dv /dev/null $profile
echo "[org/mate/desktop/background]
color-shading-type='vertical-gradient'
picture-filename='/usr/share/backgrounds/armbian/armbian03-Dre0x-Minum-dark-3840x2160.jpg'
picture-options='zoom'
primary-color='rgb(255,255,255)'
secondary-color='rgb(0,0,0)'
[org/mate/desktop/interface]
gtk-theme='Numix'
icon-theme='Numix'
[org/mate/desktop/screensaver]
picture-filename='/usr/share/backgrounds/armbian/armbian03-Dre0x-Minum-dark-3840x2160.jpg'
picture-options='zoom'
primary-color='#456789'
secondary-color='#FFFFFF'" >> $keys
echo "user-db:user
system-db:local" >> $profile
dconf update
#compile schemas
if [ -d /usr/share/glib-2.0/schemas ]; then
glib-compile-schemas /usr/share/glib-2.0/schemas
fi