From eb98515b181061c2e5f8f9785d3904b6f0b65f5a Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Wed, 28 Aug 2024 18:52:15 +0300 Subject: [PATCH] add enable pika default extensions --- ...aos-linux.pikagnomelayouts.papirus.policy} | 8 ++++---- .../actions/fkm.kernel.cachyos.init.policy | 19 ------------------- .../actions/fkm.modify.package.policy | 19 ------------------- ...ikaos-linux.pikagnomelayouts.papirus.rules | 6 ++++++ .../rules.d/99-fkm.kernel.cachyos.init.rules | 6 ------ data/scripts/dconf-accent.sh | 12 ++++++++++++ data/scripts/enable-pika-default-gex.sh | 7 +++++++ 7 files changed, 29 insertions(+), 48 deletions(-) rename data/polkit-1/actions/{fkm.change.scx.policy => com.github.pikaos-linux.pikagnomelayouts.papirus.policy} (67%) delete mode 100644 data/polkit-1/actions/fkm.kernel.cachyos.init.policy delete mode 100644 data/polkit-1/actions/fkm.modify.package.policy create mode 100644 data/polkit-1/rules.d/99-com.github.pikaos-linux.pikagnomelayouts.papirus.rules delete mode 100644 data/polkit-1/rules.d/99-fkm.kernel.cachyos.init.rules create mode 100755 data/scripts/dconf-accent.sh create mode 100644 data/scripts/enable-pika-default-gex.sh diff --git a/data/polkit-1/actions/fkm.change.scx.policy b/data/polkit-1/actions/com.github.pikaos-linux.pikagnomelayouts.papirus.policy similarity index 67% rename from data/polkit-1/actions/fkm.change.scx.policy rename to data/polkit-1/actions/com.github.pikaos-linux.pikagnomelayouts.papirus.policy index e8d1d49..fa01dbe 100644 --- a/data/polkit-1/actions/fkm.change.scx.policy +++ b/data/polkit-1/actions/com.github.pikaos-linux.pikagnomelayouts.papirus.policy @@ -4,15 +4,15 @@ "http://www.freedesktop.org/software/polkit/policyconfig-1.dtd"> - - Authentication is required to change the SCX Scheduler - com.github.cosmicfusion.fedora-kernel-manager + + Authentication is required to change papirus folders colors + desktop auth_admin auth_admin auth_admin - /usr/lib/fedora-kernel-manager/scripts/change_scx.sh + /usr/lib/pika/gnome-layouts/papirus-folders true diff --git a/data/polkit-1/actions/fkm.kernel.cachyos.init.policy b/data/polkit-1/actions/fkm.kernel.cachyos.init.policy deleted file mode 100644 index a0d8b34..0000000 --- a/data/polkit-1/actions/fkm.kernel.cachyos.init.policy +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - Authentication is required to initialize the Cachyos kernel repo - com.github.cosmicfusion.fedora-kernel-manager - - auth_admin - auth_admin - auth_admin - - /usr/lib/fedora-kernel-manager/scripts/kernel-cachyos-init.sh - true - - - \ No newline at end of file diff --git a/data/polkit-1/actions/fkm.modify.package.policy b/data/polkit-1/actions/fkm.modify.package.policy deleted file mode 100644 index f40a4d8..0000000 --- a/data/polkit-1/actions/fkm.modify.package.policy +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - Authentication is required to modify system packages - com.github.cosmicfusion.fedora-kernel-manager - - auth_admin - auth_admin - auth_admin - - /usr/lib/fedora-kernel-manager/scripts/modify_package.sh - true - - - \ No newline at end of file diff --git a/data/polkit-1/rules.d/99-com.github.pikaos-linux.pikagnomelayouts.papirus.rules b/data/polkit-1/rules.d/99-com.github.pikaos-linux.pikagnomelayouts.papirus.rules new file mode 100644 index 0000000..0985abf --- /dev/null +++ b/data/polkit-1/rules.d/99-com.github.pikaos-linux.pikagnomelayouts.papirus.rules @@ -0,0 +1,6 @@ +/* Allow passwordless auth for com.github.pikaos-linux.pikagnomelayouts.papirus +polkit.addRule(function(action, subject) { + if (action.id == "com.github.pikaos-linux.pikagnomelayouts.papirus") { + return polkit.Result.YES; + } +}); \ No newline at end of file diff --git a/data/polkit-1/rules.d/99-fkm.kernel.cachyos.init.rules b/data/polkit-1/rules.d/99-fkm.kernel.cachyos.init.rules deleted file mode 100644 index 9d3ffe1..0000000 --- a/data/polkit-1/rules.d/99-fkm.kernel.cachyos.init.rules +++ /dev/null @@ -1,6 +0,0 @@ -/* Allow passwordless auth for fkm.kernel.cachyos.init -polkit.addRule(function(action, subject) { - if (action.id == "fkm.kernel.cachyos.init") { - return polkit.Result.YES; - } -}); \ No newline at end of file diff --git a/data/scripts/dconf-accent.sh b/data/scripts/dconf-accent.sh new file mode 100755 index 0000000..98bdc27 --- /dev/null +++ b/data/scripts/dconf-accent.sh @@ -0,0 +1,12 @@ +#! /usr/bin/bash +# Enable extensions +gnome-extensions enable custom-accent-colors@demiskp +gnome-extensions enable user-theme@gnome-shell-extensions.gcampax.github.com +# Set accent color settings +dconf write /org/gnome/shell/extensions/custom-accent-colors/accent-color "'"$1"'" +dconf write /org/gnome/shell/extensions/custom-accent-colors/theme-flatpak true +dconf write /org/gnome/shell/extensions/custom-accent-colors/theme-gtk3 true +dconf write /org/gnome/shell/extensions/custom-accent-colors/theme-shell true +# Refresh Shell +dconf write /org/gnome/shell/extensions/user-theme/name "''" +dconf write /org/gnome/shell/extensions/user-theme/name "'CustomAccentColors'" \ No newline at end of file diff --git a/data/scripts/enable-pika-default-gex.sh b/data/scripts/enable-pika-default-gex.sh new file mode 100644 index 0000000..af7e580 --- /dev/null +++ b/data/scripts/enable-pika-default-gex.sh @@ -0,0 +1,7 @@ +#! /bin/bash + +gnome-extensions enable ubuntu-appindicators@ubuntu.com +gnome-extensions enable legacyschemeautoswitcher@joshimukul29.gmail.com +gnome-extensions enable user-theme@gnome-shell-extensions.gcampax.github.com +gnome-extensions enable custom-accent-colors@demiskp +gnome-extensions enable pop-shell@system76.com \ No newline at end of file