summarylogtreecommitdiffstats
path: root/sddm-acidhub-theme.install
diff options
context:
space:
mode:
authorFernando Manfredi2015-06-08 09:58:45 -0300
committerFernando Manfredi2015-06-08 09:58:45 -0300
commit61c2122c44c4c20871a53bbee92f04bb2986554d (patch)
treef3265ed11fc6e8e988cf8780ce0c97dcb9827a08 /sddm-acidhub-theme.install
downloadaur-61c2122c44c4c20871a53bbee92f04bb2986554d.tar.gz
Initial import to AUR4
Diffstat (limited to 'sddm-acidhub-theme.install')
-rw-r--r--sddm-acidhub-theme.install30
1 files changed, 30 insertions, 0 deletions
diff --git a/sddm-acidhub-theme.install b/sddm-acidhub-theme.install
new file mode 100644
index 000000000000..8f2981433518
--- /dev/null
+++ b/sddm-acidhub-theme.install
@@ -0,0 +1,30 @@
+if test ! -z $(cat /etc/pacman.conf | grep '^Color'); then
+ color_reset="\e[0m"
+ bold_green="${color_reset}\e[1;32m"
+ bold_blue="${color_reset}\e[1;34m"
+ bold_white="${color_reset}\e[1;37m"
+ bold_underline_white="${color_reset}\e[4;1;37m"
+ bold_yellow="${color_reset}\e[1;33m"
+fi
+
+post_install() {
+ echo -e "${bold_green}==>${color_reset} ${bold_white}Edit your sddm.conf${color_reset}"
+ echo -e " ${bold_blue}->${color_reset} ${bold_white}Add ${bold_underline_white}acidhub${bold_white} as your current theme. Example:${color_reset}"
+ echo -e "\n[Theme]"
+ echo -e "# Current theme name"
+ echo -e "Current=${bold_underline_white}acidhub${color_reset}\n"
+ echo -e " ${bold_blue}->${color_reset} ${bold_white}More info at https://wiki.archlinux.org/index.php/SDDM${color_reset}"
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ echo -e "${bold_yellow}==>${color_reset} ${bold_white}Edit your sddm.conf${color_reset}"
+ echo -e " ${bold_blue}->${color_reset} ${bold_white}Remove ${bold_underline_white}acidhub${bold_white} as your current theme. By default:${color_reset}"
+ echo -e "\n[Theme]"
+ echo -e "# Current theme name"
+ echo -e "Current=${bold_underline_white}maui${color_reset}\n"
+ echo -e " ${bold_blue}->${color_reset} ${bold_white}More info at https://wiki.archlinux.org/index.php/SDDM${color_reset}"
+}