Skip to content

Commit fb5cbc8

Browse files
committed
feat: correct the color combo of script
1 parent 937cc22 commit fb5cbc8

2 files changed

Lines changed: 63 additions & 32 deletions

File tree

install.sh

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ if [[ -t 1 ]] && [[ "${TERM:-dumb}" != "dumb" ]]; then
2222
GREEN='\033[0;32m'
2323
YELLOW='\033[1;33m'
2424
BLUE='\033[0;34m'
25+
MINT='\033[38;2;154;184;124m' # Mint-Y green #9ab87c
2526
NC='\033[0m'
2627
else
2728
RED=''
2829
GREEN=''
2930
YELLOW=''
3031
BLUE=''
32+
MINT=''
3133
NC=''
3234
fi
3335

@@ -47,11 +49,17 @@ trap cleanup EXIT
4749

4850
# Print functions
4951
print_header() {
50-
echo -e "${BLUE}"
51-
echo "╔═══════════════════════════════════════════════════════════════╗"
52-
echo "║ draphyOS Installer ║"
53-
echo "╚═══════════════════════════════════════════════════════════════╝"
52+
echo ""
53+
echo -e "${MINT}"
54+
echo " ██████╗ ██████╗ █████╗ ██████╗ ██╗ ██╗██╗ ██╗ ██████╗ ███████╗"
55+
echo " ██╔══██╗██╔══██╗██╔══██╗██╔══██╗██║ ██║╚██╗ ██╔╝██╔═══██╗██╔════╝"
56+
echo " ██║ ██║██████╔╝███████║██████╔╝███████║ ╚████╔╝ ██║ ██║███████╗"
57+
echo " ██║ ██║██╔══██╗██╔══██║██╔═══╝ ██╔══██║ ╚██╔╝ ██║ ██║╚════██║"
58+
echo " ██████╔╝██║ ██║██║ ██║██║ ██║ ██║ ██║ ╚██████╔╝███████║"
59+
echo " ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝"
5460
echo -e "${NC}"
61+
echo -e " Installer"
62+
echo ""
5563
}
5664

5765
print_step() {
@@ -569,25 +577,25 @@ main() {
569577
create_marker
570578

571579
echo ""
572-
echo -e "${GREEN}╔═══════════════════════════════════════════════════════════════╗${NC}"
573-
echo -e "${GREEN} draphyOS Installation Complete! ║${NC}"
574-
echo -e "${GREEN}╚═══════════════════════════════════════════════════════════════╝${NC}"
580+
echo -e "${MINT} ╔═══════════════════════════════════════════════════════════════╗${NC}"
581+
echo -e "${MINT} Installation Complete! ${NC}"
582+
echo -e "${MINT} ╚═══════════════════════════════════════════════════════════════╝${NC}"
575583
echo ""
576584
if [ -d "$BACKUP_DIR" ]; then
577-
echo -e "Backup saved to: ${YELLOW}$BACKUP_DIR${NC}"
585+
echo -e " Backup saved to: ${YELLOW}$BACKUP_DIR${NC}"
578586
echo ""
579587
fi
580-
echo -e "${BLUE}Next steps:${NC}"
581-
echo " 1. Log out and log back in (or reboot)"
582-
echo " 2. Select 'i3' from the login screen"
583-
echo " 3. Press Super+F1 for keybinding cheatsheet"
588+
echo -e " ${MINT}Next steps:${NC}"
589+
echo " 1. Log out and log back in (or reboot)"
590+
echo " 2. Select 'i3' from the login screen"
591+
echo " 3. Press Super+F1 for keybinding cheatsheet"
584592
echo ""
585-
echo -e "Press ${GREEN}Super+d${NC} for app launcher"
586-
echo -e "Press ${GREEN}Super+Return${NC} for terminal"
593+
echo -e " Press ${MINT}Super+d${NC} for app launcher"
594+
echo -e " Press ${MINT}Super+Return${NC} for terminal"
587595
echo ""
588-
echo -e "${BLUE}Enjoy draphyOS!${NC}"
596+
echo -e " ${MINT}Enjoy draphyOS!${NC}"
589597
echo ""
590-
echo -e "Install log: ${YELLOW}$LOG_FILE${NC}"
598+
echo -e " Install log: ${YELLOW}$LOG_FILE${NC}"
591599
}
592600

593601
main "$@"

uninstall.sh

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,50 @@
11
#!/bin/bash
22
#
3+
# ██████╗ ██████╗ █████╗ ██████╗ ██╗ ██╗██╗ ██╗ ██████╗ ███████╗
4+
# ██╔══██╗██╔══██╗██╔══██╗██╔══██╗██║ ██║╚██╗ ██╔╝██╔═══██╗██╔════╝
5+
# ██║ ██║██████╔╝███████║██████╔╝███████║ ╚████╔╝ ██║ ██║███████╗
6+
# ██║ ██║██╔══██╗██╔══██║██╔═══╝ ██╔══██║ ╚██╔╝ ██║ ██║╚════██║
7+
# ██████╔╝██║ ██║██║ ██║██║ ██║ ██║ ██║ ╚██████╔╝███████║
8+
# ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
9+
#
310
# draphyOS Uninstaller
4-
# Complete revert of draphyOS installation
11+
# https://github.com/draphy/draphyOS
512
#
613

714
set -e
815

9-
# Colors
10-
RED='\033[0;31m'
11-
GREEN='\033[0;32m'
12-
YELLOW='\033[1;33m'
13-
BLUE='\033[0;34m'
14-
NC='\033[0m'
16+
# Colors (with fallback for non-color terminals)
17+
if [[ -t 1 ]] && [[ "${TERM:-dumb}" != "dumb" ]]; then
18+
RED='\033[0;31m'
19+
GREEN='\033[0;32m'
20+
YELLOW='\033[1;33m'
21+
BLUE='\033[0;34m'
22+
MINT='\033[38;2;154;184;124m' # Mint-Y green #9ab87c
23+
NC='\033[0m'
24+
else
25+
RED=''
26+
GREEN=''
27+
YELLOW=''
28+
BLUE=''
29+
MINT=''
30+
NC=''
31+
fi
1532

1633
INSTALL_DIR="$HOME/.draphyOS"
1734
MARKER_FILE="$HOME/.draphyOS-installed"
1835

1936
print_header() {
37+
echo ""
2038
echo -e "${RED}"
21-
echo "╔═══════════════════════════════════════════════════════════════╗"
22-
echo "║ draphyOS Uninstaller ║"
23-
echo "╚═══════════════════════════════════════════════════════════════╝"
39+
echo " ██████╗ ██████╗ █████╗ ██████╗ ██╗ ██╗██╗ ██╗ ██████╗ ███████╗"
40+
echo " ██╔══██╗██╔══██╗██╔══██╗██╔══██╗██║ ██║╚██╗ ██╔╝██╔═══██╗██╔════╝"
41+
echo " ██║ ██║██████╔╝███████║██████╔╝███████║ ╚████╔╝ ██║ ██║███████╗"
42+
echo " ██║ ██║██╔══██╗██╔══██║██╔═══╝ ██╔══██║ ╚██╔╝ ██║ ██║╚════██║"
43+
echo " ██████╔╝██║ ██║██║ ██║██║ ██║ ██║ ██║ ╚██████╔╝███████║"
44+
echo " ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝"
2445
echo -e "${NC}"
46+
echo -e " Uninstaller"
47+
echo ""
2548
}
2649

2750
print_step() {
@@ -276,14 +299,14 @@ main() {
276299
remove_install_dir
277300

278301
echo ""
279-
echo -e "${GREEN}╔═══════════════════════════════════════════════════════════════╗${NC}"
280-
echo -e "${GREEN} draphyOS Uninstallation Complete! ║${NC}"
281-
echo -e "${GREEN}╚═══════════════════════════════════════════════════════════════╝${NC}"
302+
echo -e "${MINT} ╔═══════════════════════════════════════════════════════════════╗${NC}"
303+
echo -e "${MINT} Uninstallation Complete! ${NC}"
304+
echo -e "${MINT} ╚═══════════════════════════════════════════════════════════════╝${NC}"
282305
echo ""
283-
echo -e "${YELLOW}Please log out and back in for all changes to take effect.${NC}"
306+
echo -e " ${YELLOW}Please log out and back in for all changes to take effect.${NC}"
284307
echo ""
285-
echo "If you restored a backup, your previous configs are now active."
286-
echo "If not, you may need to reconfigure your desktop environment."
308+
echo " If you restored a backup, your previous configs are now active."
309+
echo " If not, you may need to reconfigure your desktop environment."
287310
echo ""
288311
}
289312

0 commit comments

Comments
 (0)