diff options
author | Adrien Jussak | 2019-03-26 13:58:28 +0100 |
---|---|---|
committer | Adrien Jussak | 2019-03-26 13:58:28 +0100 |
commit | 6fcd38c309170e079153f456f5539f577d3df399 (patch) | |
tree | 38fcad05cfde32961df5341f8ba369cc69a8359a /prime-switcher.install | |
download | aur-6fcd38c309170e079153f456f5539f577d3df399.tar.gz |
First Commit
Diffstat (limited to 'prime-switcher.install')
-rw-r--r-- | prime-switcher.install | 15 |
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 +} |