From f4e5dc5e9a0185beae943fb678ecccf759b496bc Mon Sep 17 00:00:00 2001 From: NekoRouter Date: Thu, 11 Jul 2024 14:32:09 +0800 Subject: [PATCH] addons: Add laptop/console default desktop config --- .../panel/launcher-17/17034322841.desktop | 13 ++ .../panel/launcher-18/17034322842.desktop | 14 ++ .../panel/launcher-19/17034322843.desktop | 16 ++ .../panel/launcher-20/17034322844.desktop | 12 ++ .../xfconf/xfce-perchannel-xml/displays.xml | 44 ++++ .../xfconf/xfce-perchannel-xml/keyboards.xml | 7 + .../xfconf/xfce-perchannel-xml/pointers.xml | 9 + .../xfconf/xfce-perchannel-xml/thunar.xml | 6 + .../xfce-perchannel-xml/xfce4-desktop.xml | 50 +++++ .../xfce4-keyboard-shortcuts.xml | 196 ++++++++++++++++++ .../xfce-perchannel-xml/xfce4-notifyd.xml | 10 + .../xfce-perchannel-xml/xfce4-panel.xml | 113 ++++++++++ .../xfce4-power-manager.xml | 11 + .../xfce-perchannel-xml/xfce4-session.xml | 42 ++++ .../xfconf/xfce-perchannel-xml/xfwm4.xml | 91 ++++++++ scripts/after_mkrootfs.sh | 16 +- 16 files changed, 648 insertions(+), 2 deletions(-) create mode 100644 addons/skel-laptop/.config/panel/launcher-17/17034322841.desktop create mode 100644 addons/skel-laptop/.config/panel/launcher-18/17034322842.desktop create mode 100644 addons/skel-laptop/.config/panel/launcher-19/17034322843.desktop create mode 100644 addons/skel-laptop/.config/panel/launcher-20/17034322844.desktop create mode 100644 addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/displays.xml create mode 100644 addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/keyboards.xml create mode 100644 addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/pointers.xml create mode 100644 addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/thunar.xml create mode 100644 addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-desktop.xml create mode 100644 addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml create mode 100644 addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml create mode 100644 addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-panel.xml create mode 100644 addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml create mode 100644 addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-session.xml create mode 100644 addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfwm4.xml diff --git a/addons/skel-laptop/.config/panel/launcher-17/17034322841.desktop b/addons/skel-laptop/.config/panel/launcher-17/17034322841.desktop new file mode 100644 index 0000000..5daa0c8 --- /dev/null +++ b/addons/skel-laptop/.config/panel/launcher-17/17034322841.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Exec=exo-open --launch TerminalEmulator +Icon=org.xfce.terminalemulator +StartupNotify=true +Terminal=false +Categories=Utility;X-XFCE;X-Xfce-Toplevel; +OnlyShowIn=XFCE; +X-AppStream-Ignore=True +Name=Terminal Emulator +Comment=Use the command line +X-XFCE-Source=file:///usr/share/applications/xfce4-terminal-emulator.desktop diff --git a/addons/skel-laptop/.config/panel/launcher-18/17034322842.desktop b/addons/skel-laptop/.config/panel/launcher-18/17034322842.desktop new file mode 100644 index 0000000..b6dd1b5 --- /dev/null +++ b/addons/skel-laptop/.config/panel/launcher-18/17034322842.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Exec=exo-open --launch FileManager %u +Icon=org.xfce.filemanager +StartupNotify=true +Terminal=false +Categories=Utility;X-XFCE;X-Xfce-Toplevel; +OnlyShowIn=XFCE; +X-XFCE-MimeType=inode/directory;x-scheme-handler/trash; +X-AppStream-Ignore=True +Name=File Manager +Comment=Browse the file system +X-XFCE-Source=file:///usr/share/applications/xfce4-file-manager.desktop diff --git a/addons/skel-laptop/.config/panel/launcher-19/17034322843.desktop b/addons/skel-laptop/.config/panel/launcher-19/17034322843.desktop new file mode 100644 index 0000000..a321bb9 --- /dev/null +++ b/addons/skel-laptop/.config/panel/launcher-19/17034322843.desktop @@ -0,0 +1,16 @@ +[Desktop Entry] +Version=1.0 +Name=Chromium Web Browser +GenericName=Web Browser +Comment=Access the Internet +Exec=/usr/bin/chromium --no-sandbox --use-gl=egl --no-sandbox --use-gl=egl %U +Terminal=false +X-MultipleArgs=false +Type=Application +Icon=chromium +Categories=Network;WebBrowser; +MimeType=text/html;text/xml;application/xhtml_xml;application/x-mimearchive;x-scheme-handler/http;x-scheme-handler/https; +StartupWMClass=chromium +StartupNotify=true +Keywords=browser +X-XFCE-Source=file:///usr/share/applications/chromium.desktop diff --git a/addons/skel-laptop/.config/panel/launcher-20/17034322844.desktop b/addons/skel-laptop/.config/panel/launcher-20/17034322844.desktop new file mode 100644 index 0000000..9306ddc --- /dev/null +++ b/addons/skel-laptop/.config/panel/launcher-20/17034322844.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Version=1.0 +Exec=xfce4-appfinder +Icon=org.xfce.appfinder +StartupNotify=true +Terminal=false +Type=Application +Categories=Utility;X-XFCE; +Name=Application Finder +Comment=Find and launch applications installed on your system +Keywords=program;applications;bookmarks; +X-XFCE-Source=file:///usr/share/applications/xfce4-appfinder.desktop diff --git a/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/displays.xml b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/displays.xml new file mode 100644 index 0000000..a0a4d86 --- /dev/null +++ b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/displays.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/keyboards.xml b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/keyboards.xml new file mode 100644 index 0000000..9ddc443 --- /dev/null +++ b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/keyboards.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/pointers.xml b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/pointers.xml new file mode 100644 index 0000000..8154225 --- /dev/null +++ b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/pointers.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/thunar.xml b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/thunar.xml new file mode 100644 index 0000000..8bd2971 --- /dev/null +++ b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/thunar.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-desktop.xml b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-desktop.xml new file mode 100644 index 0000000..217e1ce --- /dev/null +++ b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-desktop.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml new file mode 100644 index 0000000..2e09df4 --- /dev/null +++ b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml new file mode 100644 index 0000000..c74e441 --- /dev/null +++ b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-panel.xml b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-panel.xml new file mode 100644 index 0000000..d2de289 --- /dev/null +++ b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-panel.xml @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml new file mode 100644 index 0000000..2c85e0d --- /dev/null +++ b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-session.xml b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-session.xml new file mode 100644 index 0000000..8346363 --- /dev/null +++ b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfce4-session.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfwm4.xml b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfwm4.xml new file mode 100644 index 0000000..0d21099 --- /dev/null +++ b/addons/skel-laptop/.config/xfconf/xfce-perchannel-xml/xfwm4.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/after_mkrootfs.sh b/scripts/after_mkrootfs.sh index cceddce..b5dd170 100755 --- a/scripts/after_mkrootfs.sh +++ b/scripts/after_mkrootfs.sh @@ -110,14 +110,26 @@ EOF # Copy files for Console4A if [ "${BOARD}" == "${BOARD_CONSOLE4A}" ]; then echo "Console4A specific: Copy files for Console4A" - cp -rp addons/LicheeConsole4A/* rootfs/opt/ + # Install xfce4-power-manager-plugins + chroot "$CHROOT_TARGET" sh -c "apt install -y xfce4-power-manager-plugins" + # Copy files + cp -rp addons/LicheeConsole4A/. rootfs/opt/ + cp -rp addons/skel-laptop/. rootfs/etc/skel/ # Install autostarts cp -rp addons/LicheeConsole4A/display-setup.desktop rootfs/etc/xdg/autostart/ - # Rotate lightdm screen using /opt/display-setup.sh sed -i 's/#greeter-setup-script=/greeter-setup-script=\/opt\/display-setup.sh/g' "$CHROOT_TARGET"/etc/lightdm/lightdm.conf fi + # Copy files for Laptop4A + if [ "${BOARD}" == "${BOARD_LAPTOP4A}" ]; then + echo "Laptop4A specific: Copy files for Laptop4A" + # Install xfce4-power-manager-plugins + chroot "$CHROOT_TARGET" sh -c "apt install -y xfce4-power-manager-plugins" + # Copy files + cp -rp addons/skel-laptop/. rootfs/etc/skel/ + fi + # Set locale to en_US.UTF-8 UTF-8 chroot "$CHROOT_TARGET" sh -c "echo 'locales locales/default_environment_locale select en_US.UTF-8' | debconf-set-selections" chroot "$CHROOT_TARGET" sh -c "echo 'locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8' | debconf-set-selections"