-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·53 lines (42 loc) · 1.39 KB
/
setup.sh
File metadata and controls
executable file
·53 lines (42 loc) · 1.39 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#! /bin/bash
if [ -z "$STN_HOME" ];then
export STN_HOME=$(pwd)
. ./bin/stn-set-env
fi
cols=$(tput cols)
# Define color (you can change 36 to other ANSI color codes)
color='\033[1;32m'
nc='\033[0m' # No color
art='
░░░░░░░ ░░░░░░░░ ░░░ ░░
▒▒ ▒▒ ▒▒▒▒ ▒▒
▒▒▒▒▒▒▒ ▒▒ ▒▒ ▒▒ ▒▒
▓▓ ▓▓ ▓▓ ▓▓ ▓▓
███████ ██ ██ ████
'
# Set some screen-relative padding
while IFS= read -r line; do
padding=$(( (cols - ${#line}) / 10 ))
printf "%*s$(stn-echo-style "green" "%s${nc}")\n" "$padding" "" "$line"
done <<< "$art"
echo -e "${color}STN_HOME${nc}=${STN_HOME}"
echo -e "${color}STN_BIN${nc}=${STN_BIN}"
echo -e "${color}STN_CONFIG_DIR${nc}=${STN_CONFIG_DIR}"
echo -e "Looks good? (Y/n)"
read -n 1 answer
echo ""
if [ -z "$answer" ]; then
answer="y"
fi
case $answer in
y|Y ) echo "$(stn-echo-style "blue" "") Installing $(stn-echo-style "blue" "stn-dotfiles")...";;
* ) exit;;
esac
stn-setup
echo "$(stn-echo-style "green" "") Done!"
echo ""
echo "$(stn-echo-style "green" "Next steps:")"
echo " ⏼ Reboot"
echo " Check out $(stn-echo-style "blue" "~/.config/hypr/hyprland/monitors.conf")"
echo " Check out $(stn-echo-style "blue" "~/.config/hypr/hyprland/workspaces.conf")"
zsh