aboutsummaryrefslogtreecommitdiff
path: root/scripts/LINARO/23-customize-lxqt.chroot
blob: d9c4073c0c10e4cffae0f2d361f4fbc2157f1b02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -e

# Customize lxqt defaults
if [ -e $target/usr/share/lxqt/lxqt.conf ]; then
  # Copy files from /usr/share to /etc/xdg
  mkdir -p $target/etc/xdg/lxqt
  cp $target/usr/share/lxqt/lxqt.conf $target/etc/xdg/lxqt
  cp $target/usr/share/lxqt/session.conf $target/etc/xdg/lxqt
  mkdir -p $target/etc/xdg/pcmanfm-qt/lxqt/
  cp $target/usr/share/pcmanfm-qt/lxqt/settings.conf $target/etc/xdg/pcmanfm-qt/lxqt

  sed -i "s|^theme=.*|theme=kde-plasma|" $target/etc/xdg/lxqt/lxqt.conf
  sed -i "s|^icon_theme=.*|icon_theme=breeze|" $target/etc/xdg/lxqt/lxqt.conf
  sed -i "s|^style=.*|style=Breeze|" $target/etc/xdg/lxqt/lxqt.conf
  sed -i "s|^window_manager=.*|window_manager=kwin|" $target/etc/xdg/lxqt/session.conf
  sed -i "s|^cursor_theme=.*|cursor_theme=breeze_cursors|" $target/etc/xdg/lxqt/session.conf
  sed -i "s|^Wallpaper=.*|Wallpaper=/usr/share/96boards/wallpapers/96boards-default-wallpaper.jpg|" $target/etc/xdg/pcmanfm-qt/lxqt/settings.conf
fi