Repository navigation
Expand file tree
/
Copy pathbash_profile
More file actions
50 lines (42 loc) · 1.52 KB
/
Copy pathbash_profile
File metadata and controls
50 lines (42 loc) · 1.52 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
# shellcheck shell=bash
# github.com/dillacorn/awtarchy
# ~/.bash_profile - User login configuration
# Source ~/.bashrc if it exists (common practice to keep shell settings centralized)
if [[ -f "$HOME/.bashrc" ]]; then
# shellcheck source=/dev/null
. "$HOME/.bashrc"
fi
export PATH="$HOME/.local/bin:$PATH"
# Run fastfetch with a TTY-friendly config (system info tool)
fastfetch --config ~/.config/fastfetch/tty_compatible.jsonc
# Advertise only available compositor entrypoints when logging in from a TTY.
if command -v hypr >/dev/null 2>&1; then
echo -e "\033[1;34mTo start Hyprland, type: \033[1;31mhypr\033[0m"
fi
if [[ -x "$HOME/.local/bin/sway" && -x /usr/bin/sway &&
( -f "$HOME/.config/sway/awtarchy/config/config" ||
-f "$HOME/.config/sway/awtarchy-trial/config" ) ]]; then
echo -e "\033[1;34mTo start Sway, type: \033[1;31msway\033[0m"
fi
# --- Fun message function ---
# Randomly suggests a fun terminal command to try on login
add_random_fun_message() {
# Array of fun commands to try
local fun_messages=(
"cacafire"
"cmatrix"
"aafire"
"asciiquarium"
"figlet TTY is cool"
"termdown 10"
"termdown -z"
"termdown -v en 10"
"espeak-ng -s 150 'I, love, TTY'"
)
# Pick a random command from the list
RANDOM_FUN_MESSAGE="${fun_messages[RANDOM % ${#fun_messages[@]}]}"
# Print a colorful suggestion message
echo -e "\033[1;33mFor some fun, try running \033[1;31m$RANDOM_FUN_MESSAGE\033[1;33m!\033[0m"
}
# Call the fun message function on login
add_random_fun_message