From 47d74f553f9f36bb70583deafe25a215da09c3fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Fri, 23 Sep 2022 19:05:34 +0200 Subject: [PATCH] Define panel shortcuts for Gnome x64 per appgroup (#4222) --- .../desktop/focal/environments/gnome/debian/postinst | 9 ++++++--- .../gnome/appgroups/browsers/debian/postinst | 11 +++++++++++ .../gnome/appgroups/email/debian/postinst | 11 +++++++++++ .../gnome/appgroups/programming/debian/postinst | 10 ++++++++++ 4 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 config/optional/architectures/amd64/_config/desktop/_all_distributions/environments/gnome/appgroups/browsers/debian/postinst create mode 100644 config/optional/architectures/amd64/_config/desktop/_all_distributions/environments/gnome/appgroups/email/debian/postinst create mode 100644 config/optional/architectures/amd64/_config/desktop/_all_distributions/environments/gnome/appgroups/programming/debian/postinst diff --git a/config/desktop/focal/environments/gnome/debian/postinst b/config/desktop/focal/environments/gnome/debian/postinst index 22b150e1e2..3f0f46a320 100644 --- a/config/desktop/focal/environments/gnome/debian/postinst +++ b/config/desktop/focal/environments/gnome/debian/postinst @@ -12,7 +12,12 @@ profile=/etc/dconf/profile/user install -Dv /dev/null $keys install -Dv /dev/null $profile -echo "[org/gnome/desktop/background] +# set default shortcuts +echo " +[org/gnome/shell] +favorite-apps = ['terminator.desktop'] + +[org/gnome/desktop/background] picture-uri='file:///usr/share/backgrounds/armbian/armbian03-Dre0x-Minum-dark-3840x2160.jpg' picture-options='zoom' primary-color='#456789' @@ -29,8 +34,6 @@ system-db:local" >> $profile dconf update -#sudo apt-get -y remove gnome-shell-extension-desktop-icons - #compile schemas if [ -d /usr/share/glib-2.0/schemas ]; then glib-compile-schemas /usr/share/glib-2.0/schemas diff --git a/config/optional/architectures/amd64/_config/desktop/_all_distributions/environments/gnome/appgroups/browsers/debian/postinst b/config/optional/architectures/amd64/_config/desktop/_all_distributions/environments/gnome/appgroups/browsers/debian/postinst new file mode 100644 index 0000000000..ba30af432f --- /dev/null +++ b/config/optional/architectures/amd64/_config/desktop/_all_distributions/environments/gnome/appgroups/browsers/debian/postinst @@ -0,0 +1,11 @@ + +# install Gnome X64 specific + +echo " +[org/gnome/shell] +favorite-apps = [$(dconf read /org/gnome/shell/favorite-apps | sed 's/[][]//g') , 'google-chrome.desktop'] +" >> $keys + +# update +dconf update + diff --git a/config/optional/architectures/amd64/_config/desktop/_all_distributions/environments/gnome/appgroups/email/debian/postinst b/config/optional/architectures/amd64/_config/desktop/_all_distributions/environments/gnome/appgroups/email/debian/postinst new file mode 100644 index 0000000000..8c6e1a9a7e --- /dev/null +++ b/config/optional/architectures/amd64/_config/desktop/_all_distributions/environments/gnome/appgroups/email/debian/postinst @@ -0,0 +1,11 @@ + +# install Gnome X64 specific favorites + +echo " +[org/gnome/shell] +favorite-apps = [$(dconf read /org/gnome/shell/favorite-apps | sed 's/[][]//g') , 'thunderbird.desktop'] +" >> $keys + +# Update +dconf update + diff --git a/config/optional/architectures/amd64/_config/desktop/_all_distributions/environments/gnome/appgroups/programming/debian/postinst b/config/optional/architectures/amd64/_config/desktop/_all_distributions/environments/gnome/appgroups/programming/debian/postinst new file mode 100644 index 0000000000..a0bed4de4d --- /dev/null +++ b/config/optional/architectures/amd64/_config/desktop/_all_distributions/environments/gnome/appgroups/programming/debian/postinst @@ -0,0 +1,10 @@ + +# install Gnome x64 specific favorites + +echo " +[org/gnome/shell] +favorite-apps = [$(dconf read /org/gnome/shell/favorite-apps | sed 's/[][]//g') , 'code.desktop'] +" >> $keys + +# Update +dconf update