summarylogtreecommitdiffstats
path: root/sddm-acidhub-theme.install
blob: 8f29814335189dcf6475f7bac8c4e62161a9611b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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}"
}