summarylogtreecommitdiffstats
path: root/prime-switcher.install
diff options
context:
space:
mode:
Diffstat (limited to 'prime-switcher.install')
-rw-r--r--prime-switcher.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/prime-switcher.install b/prime-switcher.install
new file mode 100644
index 000000000000..1f163f58581d
--- /dev/null
+++ b/prime-switcher.install
@@ -0,0 +1,15 @@
+pkgname=prime-switcher
+
+post_install() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+ prime-switcher -D -s power-saving
+}
+
+pre_remove() {
+ prime-switcher --uninstall
+ echo "Reboot is required to apply changes"
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+}