From c117db90a60a7e36324ddc16a896d572422fd884 Mon Sep 17 00:00:00 2001 From: Banana Pi -BPI Date: Fri, 23 Aug 2024 01:03:41 +0800 Subject: [PATCH] add sid xfce --- config/desktop/sid/environments/xfce | 1 - .../sid/environments/xfce/architectures | 1 + .../xfce/armbian/create_desktop_package.sh | 22 ++++ .../environments/xfce/config_base/packages | 123 ++++++++++++++++++ .../sid/environments/xfce/debian/postinst | 18 +++ config/desktop/sid/environments/xfce/support | 1 + 6 files changed, 165 insertions(+), 1 deletion(-) delete mode 120000 config/desktop/sid/environments/xfce create mode 100644 config/desktop/sid/environments/xfce/architectures create mode 100644 config/desktop/sid/environments/xfce/armbian/create_desktop_package.sh create mode 100644 config/desktop/sid/environments/xfce/config_base/packages create mode 100644 config/desktop/sid/environments/xfce/debian/postinst create mode 100644 config/desktop/sid/environments/xfce/support diff --git a/config/desktop/sid/environments/xfce b/config/desktop/sid/environments/xfce deleted file mode 120000 index 490c05e4c568..000000000000 --- a/config/desktop/sid/environments/xfce +++ /dev/null @@ -1 +0,0 @@ -../../bookworm/environments/xfce \ No newline at end of file diff --git a/config/desktop/sid/environments/xfce/architectures b/config/desktop/sid/environments/xfce/architectures new file mode 100644 index 000000000000..4dfec34b8f20 --- /dev/null +++ b/config/desktop/sid/environments/xfce/architectures @@ -0,0 +1 @@ +arm64, amd64, armhf, riscv64 diff --git a/config/desktop/sid/environments/xfce/armbian/create_desktop_package.sh b/config/desktop/sid/environments/xfce/armbian/create_desktop_package.sh new file mode 100644 index 000000000000..106edee915bf --- /dev/null +++ b/config/desktop/sid/environments/xfce/armbian/create_desktop_package.sh @@ -0,0 +1,22 @@ +# install lightdm greeter +cp -R "${SRC}"/packages/blobs/desktop/lightdm "${destination}"/etc/armbian + +# install default desktop settings +mkdir -p "${destination}"/etc/skel +cp -R "${SRC}"/packages/blobs/desktop/skel/. "${destination}"/etc/skel + +#install cinnamon desktop bar icons +mkdir -p "${destination}"/usr/share/icons/armbian +cp "${SRC}"/packages/blobs/desktop/desktop-icons/*.png "${destination}"/usr/share/icons/armbian + +# install wallpapers +mkdir -p "${destination}"/usr/share/backgrounds/armbian/ +cp "${SRC}"/packages/blobs/desktop/desktop-wallpapers/*.jpg "${destination}"/usr/share/backgrounds/armbian + +# install wallpapers +mkdir -p "${destination}"/usr/share/backgrounds/armbian-lightdm/ +cp "${SRC}"/packages/blobs/desktop/lightdm-wallpapers/*.jpg "${destination}"/usr/share/backgrounds/armbian-lightdm + +# install logo for login screen +mkdir -p "${destination}"/usr/share/pixmaps/armbian +cp "${SRC}"/packages/blobs/desktop/icons/armbian.png "${destination}"/usr/share/pixmaps/armbian diff --git a/config/desktop/sid/environments/xfce/config_base/packages b/config/desktop/sid/environments/xfce/config_base/packages new file mode 100644 index 000000000000..39d18b3e1904 --- /dev/null +++ b/config/desktop/sid/environments/xfce/config_base/packages @@ -0,0 +1,123 @@ +anacron +apt-xapian-index +blueman +bluez +bluez-cups +bluez-tools +brltty +brltty-x11 +cifs-utils +colord +cups +cups-bsd +cups-client +cups-filters +dbus-x11 +dmz-cursor-theme +evince +evince-common +fontconfig +fontconfig-config +fonts-noto-cjk +fonts-ubuntu +fonts-ubuntu-console +foomatic-db-compressed-ppds +gdebi +ghostscript-x +gnome-calculator +gnome-font-viewer +gnome-disk-utility +gnome-screenshot +gnome-system-monitor +gstreamer1.0-packagekit +gstreamer1.0-plugins-base-apps +gstreamer1.0-pulseaudio +gtk2-engines +gtk2-engines-murrine +gtk2-engines-pixbuf +gvfs-backends +hplip +inputattach +inxi +keyutils +laptop-detect +libatk-adaptor +libfontconfig1 +libfontembed1 +libfontenc1 +libgail-common +libgl1-mesa-dri +libgsettings-qt1 +libgtk2.0-bin +libnotify-bin +libpam-gnome-keyring +libproxy1-plugin-gsettings +libproxy1-plugin-networkmanager +libu2f-udev +libwmf0.2-7-gtk +libxcursor1 +lightdm +lm-sensors +lxtask +mesa-utils +mousepad +mousetweaks +network-manager-gnome +network-manager-openvpn +network-manager-ssh +network-manager-vpnc +numix-gtk-theme +numix-icon-theme +numix-icon-theme-circle +openprinting-ppds +orca +p7zip-full +pamix +pasystray +pavucontrol +pavumeter +#policykit-1 +polkitd +#printer-driver-all +profile-sync-daemon +pulseaudio +pulseaudio-module-bluetooth +redshift +slick-greeter +smbclient +software-properties-gtk +spice-vdagent +synaptic +system-config-printer +system-config-printer-common +terminator +thunar-volman +update-inetd +viewnior +x11-apps +x11-utils +x11-xserver-utils +xapps-common +xarchiver +xbacklight +xcursor-themes +xdg-user-dirs +xdg-user-dirs-gtk +xfce4 +xfce4-notifyd +xfce4-power-manager +xfce4-screenshooter +xfce4-terminal +xfonts-100dpi +xfonts-75dpi +xfonts-base +xfonts-encodings +xfonts-scalable +xfonts-utils +xorg-docs-core +xscreensaver +xsensors +xserver-xorg +xserver-xorg-video-fbdev +xauth +xwallpaper diff --git a/config/desktop/sid/environments/xfce/debian/postinst b/config/desktop/sid/environments/xfce/debian/postinst new file mode 100644 index 000000000000..08c0ecc37c5f --- /dev/null +++ b/config/desktop/sid/environments/xfce/debian/postinst @@ -0,0 +1,18 @@ +# overwrite stock lightdm greeter configuration +if [ -d /etc/armbian/lightdm ]; then cp -R /etc/armbian/lightdm /etc/; fi + +# Adjust menu +if [ -f /etc/xdg/menus/xfce-applications.menu ]; then +sed -i -n '/Settings<\/Menuname>/{p;:a;N;/xfce4-session-logout.desktop<\/Filename>/!ba;s/.*\n/\ +\t\n\t\n \n armbian-donate.desktop<\/Filename>\ +\n armbian-support.desktop<\/Filename>\n/};p' /etc/xdg/menus/xfce-applications.menu +fi + +# Hide few items +if [ -f /usr/share/applications/display-im6.q16.desktop ]; then mv /usr/share/applications/display-im6.q16.desktop /usr/share/applications/display-im6.q16.desktop.hidden; fi +if [ -f /usr/share/applications/display-im6.desktop ]; then mv /usr/share/applications/display-im6.desktop /usr/share/applications/display-im6.desktop.hidden; fi +if [ -f /usr/share/applications/vim.desktop ]; then mv /usr/share/applications/vim.desktop /usr/share/applications/vim.desktop.hidden; fi +if [ -f /usr/share/applications/libreoffice-startcenter.desktop ]; then mv /usr/share/applications/libreoffice-startcenter.desktop /usr/share/applications/libreoffice-startcenter.desktop.hidden; 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 diff --git a/config/desktop/sid/environments/xfce/support b/config/desktop/sid/environments/xfce/support new file mode 100644 index 000000000000..a23e5fb945c1 --- /dev/null +++ b/config/desktop/sid/environments/xfce/support @@ -0,0 +1 @@ +supported