Lazy commit

This commit is contained in:
Jamie Albert
2025-11-06 02:30:35 +00:00
parent f0095371fa
commit e5d26bd32b
143 changed files with 9207 additions and 6385 deletions

View File

@@ -24,16 +24,16 @@ declare -gr JADE_CONFIG_DIR="/usr/local/etc/jade.sh"
# shellcheck disable=1090,1091
# ---
setup() {
. /usr/local/share/cradle/libs/libs_cradle.sh
[[ -d $INSTALL_DIR ]] || sudo mkdir -p "$INSTALL_DIR" || cradle::error 1 "Failed to create installation directory $INSTALL_DIR"
[[ -d "${SCRIPTS_DIR}" ]] || cradle::error 2 "Scripts directory not found: ${SCRIPTS_DIR}"
[[ -d "${CONFIG_DIR}" ]] || cradle::error 3 "Config directory not found: ${CONFIG_DIR}"
[[ -d "${DICT_DIR}" ]] || cradle::error 4 "Dict directory not found: ${DICT_DIR}"
. /usr/local/share/dao/libs/libs_dao.sh
[[ -d $INSTALL_DIR ]] || sudo mkdir -p "$INSTALL_DIR" || dao::error 1 "Failed to create installation directory $INSTALL_DIR"
[[ -d "${SCRIPTS_DIR}" ]] || dao::error 2 "Scripts directory not found: ${SCRIPTS_DIR}"
[[ -d "${CONFIG_DIR}" ]] || dao::error 3 "Config directory not found: ${CONFIG_DIR}"
[[ -d "${DICT_DIR}" ]] || dao::error 4 "Dict directory not found: ${DICT_DIR}"
}
# ---
# @arg: $1 - The name of the tool/script to install.
# @return_code: [1] General cradle::error (inherits from set -e).
# @return_code: [1] General dao::error (inherits from set -e).
# @return_code: [5] Source file not found.
# @return_code: [6] Copy failed for the tool.
# @return_code: [7] chmod failed for the tool.
@@ -47,22 +47,22 @@ install_tool() {
declare src_path
src_path=$(realpath "${SCRIPTS_DIR}/${tool}")
[[ -f $src_path ]] || cradle::error 5 "Source file not found: $tool"
[[ -f $src_path ]] || dao::error 5 "Source file not found: $tool"
sudo rm -f "${INSTALL_DIR}/${tool}"
sudo ln -s "$src_path" "$INSTALL_DIR/" || cradle::error 6 "Copy failed for $tool"
sudo chmod 755 "$INSTALL_DIR/$tool" || cradle::error 7 "chmod failed for $tool"
cradle::info "Installed: $INSTALL_DIR/$tool"
sudo ln -s "$src_path" "$INSTALL_DIR/" || dao::error 6 "Copy failed for $tool"
sudo chmod 755 "$INSTALL_DIR/$tool" || dao::error 7 "chmod failed for $tool"
dao::info "Installed: $INSTALL_DIR/$tool"
case ${tool} in
pwgen.sh)
declare dict_src="${DICT_DIR}/pwgen.list"
if [[ -f "${dict_src}" ]]; then
sudo rm -f /usr/share/dict/pwgen.list
sudo ln -s "${dict_src}" /usr/share/dict/ || cradle::error 11 "Copy failed for pwgen.list"
cradle::info "Installed /usr/share/dict/pwgen.list"
sudo ln -s "${dict_src}" /usr/share/dict/ || dao::error 11 "Copy failed for pwgen.list"
dao::info "Installed /usr/share/dict/pwgen.list"
else
cradle::warn "Dict file not found at '${dict_src}', skipping installation of /usr/share/dict/pwgen.list"
dao::warn "Dict file not found at '${dict_src}', skipping installation of /usr/share/dict/pwgen.list"
fi
;;
jade.sh)
@@ -70,15 +70,15 @@ install_tool() {
declare jade_config_dest="${JADE_CONFIG_DIR}/jade.conf"
if [[ -f "${jade_config_src}" ]]; then
if [[ ! -f "${jade_config_dest}" ]]; then
sudo mkdir -p "${JADE_CONFIG_DIR}" || cradle::error 8 "Failed to create jade config directory"
sudo mkdir -p "${JADE_CONFIG_DIR}" || dao::error 8 "Failed to create jade config directory"
sudo rm -f "${jade_config_dest}"
sudo ln -s "${jade_config_src}" "${jade_config_dest}" || cradle::error 9 "Failed to copy config for jade.sh"
cradle::info "Installed ${jade_config_dest} - manually set variables within this file."
sudo ln -s "${jade_config_src}" "${jade_config_dest}" || dao::error 9 "Failed to copy config for jade.sh"
dao::info "Installed ${jade_config_dest} - manually set variables within this file."
else
cradle::info "${jade_config_dest} already exists, not overwriting."
dao::info "${jade_config_dest} already exists, not overwriting."
fi
else
cradle::error 10 "Config template not found: '${jade_config_src}'"
dao::error 10 "Config template not found: '${jade_config_src}'"
fi
;;
esac
@@ -92,7 +92,7 @@ main() {
install_tool "$tool"
done
cradle::info "All tools installed successfully."
dao::info "All tools installed successfully."
}
main "$@"

File diff suppressed because it is too large Load Diff

View File

@@ -14,4 +14,4 @@ max_parallel_downloads=10
defaultyes=True
fastestmirror=1
deltarpm=True
metadata_expire=24h
#metadata_expire=24h

View File

@@ -0,0 +1,8 @@
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs

46
cradle/home/.bashrc Normal file
View File

@@ -0,0 +1,46 @@
#!/usr/bin/env bash
case $- in
*i*) ;;
*) return ;;
esac
[[ -z ${debian_chroot:-} && -r /etc/debian_chroot ]] && debian_chroot=$(cat /etc/debian_chroot)
case "${TERM}" in
xterm-color | *-256color) color_prompt=yes ;;
*) ;;
esac
if [[ -n ${force_color_prompt:-} ]]; then
if [[ -x /usr/bin/tput ]] && tput setaf 1 >&/dev/null; then
color_prompt=yes
else
color_prompt=
fi
fi
if [[ ${color_prompt} == yes ]]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
case "${TERM}" in
xterm* | rxvt*) PS1="\[\e]0;${debian_chroot:+(${debian_chroot})}\u@\h: \w\a\]${PS1}" ;;
*) ;;
esac
if [[ -x "/usr/bin/dircolors" ]]; then
# shellcheck disable=SC2015
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# shellcheck disable=SC1090
[[ -f ~/.bash_aliases ]] && . ~/.bash_aliases
if ! shopt -oq posix; then
if [ -f "/usr/share/bash-completion/bash_completion" ]; then
. "/usr/share/bash-completion/bash_completion"
elif [ -f "/etc/bash_completion" ]; then
. "/etc/bash_completion"
fi
fi
. "/usr/local/bin/prompt.sh"

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,286 @@
; note: most of the accent colors are set to the green of that color scheme, feel free to change it to your preferred color
[Spotify]
accent = 1db954
accent-active = 1ed760
accent-inactive = 121212
banner = 1ed760
border-active = 1ed760
border-inactive = 535353
header = 535353
highlight = 1a1a1a
main = 121212
notification = 4687d6
notification-error = e22134
subtext = b3b3b3
text = FFFFFF
[Spicetify]
accent = 00e089
accent-active = 00e089
accent-inactive = 2E2837
banner = 00e089
border-active = 00e089
border-inactive = 483b5b
header = 483b5b
highlight = 483b5b
main = 2E2837
notification = 00e089
notification-error = e22134
subtext = DEDEDE
text = FFFFFF
[CatppuccinMocha]
;https://github.com/catppuccin/catppuccin
accent = cba6f7
accent-active = cba6f7
accent-inactive = 1e1e2e
banner = cba6f7
border-active = cba6f7
border-inactive = 313244
header = 585b70
highlight = cba6f7
main = 1e1e2e
notification = 89b4fa
notification-error = f38ba8
subtext = a6adc8
text = cdd6f4
[CatppuccinMacchiato]
;https://github.com/catppuccin/catppuccin
accent = a6da95
accent-active = a6da95
accent-inactive = 24273a
banner = a6da95
border-active = a6da95
border-inactive = 363a4f
header = 5b6078
highlight = 5b6078
main = 24273a
notification = 8aadf4
notification-error = ed8796
subtext = a5adcb
text = cad3f5
[CatppuccinLatte]
;https://github.com/catppuccin/catppuccin
accent = a6d189
accent-active = a6d189
accent-inactive = 303446
banner = a6d189
border-active = a6d189
border-inactive = 414559
header = 626880
highlight = 626880
main = 303446
notification = 8caaee
notification-error = e78284
subtext = a5adce
text = c6d0f5
[Dracula]
;https://github.com/dracula/dracula-theme
accent = 50fa7b
accent-active = 50fa7b
accent-inactive = 282a36
banner = 50fa7b
border-active = 50fa7b
border-inactive = 44475a
header = 44475a
highlight = 44475a
main = 282a36
notification = 8be9fd
notification-error = ff5555
subtext = 6272a4
text = f8f8f2
[Gruvbox]
;https://github.com/morhetz/gruvbox/
accent = dfb56d
accent-active = e6c484
accent-inactive = 282828
banner = e6c484
border-active = e6c484
border-inactive = 3c3836
header = 665c54
highlight = 7c6f64
main = 282828
notification = 458588
notification-error = cc241d
subtext = ebdbb2
text = fbf1c7
[Kanagawa]
;https://github.com/rebelot/kanagawa.nvim
accent = 76946A
accent-active = 98BB6C
accent-inactive = 1F1F28
banner = 98BB6C
border-active = 98BB6C
border-inactive = 2A2A37
header = 54546D
highlight = 363646
main = 1F1F28
notification = 7E9CD8
notification-error = E82424
subtext = C8C093
text = DCD7BA
[Nord]
;https://github.com/nordtheme/nord
accent = 88c0d0
accent-active = 8fbcbb
accent-inactive = 2e3440
banner = 8fbcbb
border-active = 8fbcbb
border-inactive = 3b4252
header = 4c566a
highlight = 4c566a
main = 2e3440
notification = 5e81ac
notification-error = bf616a
subtext = d8dee9
text = eceff4
[Rigel]
;https://github.com/Rigellute/rigel/
accent = 00cccc
accent-active = 00ffff
accent-inactive = 00384d
banner = 00ffff
border-active = 00cccc
border-inactive = 517f8d
header = 517f8d
highlight = 00384d
main = 002635
notification = 7eb2dd
notification-error = ff5a67
subtext = 77929e
text = b7cff9
[RosePine]
;https://github.com/rose-pine/rose-pine-theme
accent = ebbcba
accent-active = ebbcba
accent-inactive = 1f1d2e
banner = ebbcba
border-active = ebbcba
border-inactive = 26233a
header = 6e6a86
highlight = 403d52
main = 191724
notification = 31748f
notification-error = eb6f92
subtext = 908caa
text = e0def4
[RosePineMoon]
;https://github.com/rose-pine/rose-pine-theme
accent = ea9a97
accent-active = ea9a97
accent-inactive = 2a273f
banner = ea9a97
border-active = ea9a97
border-inactive = 393552
header = 6e6a86
highlight = 44415a
main = 232136
notification = 3e8fb0
notification-error = eb6f92
subtext = 908caa
text = e0def4
[RosePineDawn]
;https://github.com/rose-pine/rose-pine-theme
accent = d7827e
accent-active = d7827e
accent-inactive = fffaf3
banner = d7827e
border-active = d7827e
border-inactive = f2e9e1
header = 9893a5
highlight = dfdad9
main = faf4ed
notification = 286983
notification-error = b4637a
subtext = 797593
text = 575279
[Solarized]
;https://github.com/altercation/solarized
accent = 859900
accent-active = 859900
accent-inactive = 073642
banner = 859900
border-active = 859900
border-inactive = 073642
header = 586e75
highlight = 073642
main = 002b36
notification = 268bd2
notification-error = dc322f
subtext = 586e75
text = 839496
[TokyoNight]
;https://github.com/enkia/tokyo-night-vscode-theme
accent = 9ece6a
accent-active = 9ece6a
accent-inactive = 1a1b26
banner = 9ece6a
border-active = 9ece6a
border-inactive = 24283b
header = 565f89
highlight = 24283b
main = 1a1b26
notification = 7aa2f7
notification-error = f7768e
subtext = 565f89
text = a9b1d6
[TokyoNightStorm]
;https://github.com/enkia/tokyo-night-vscode-theme
accent = 9ece6a
accent-active = 9ece6a
accent-inactive = 24283b
banner = 9ece6a
border-active = 9ece6a
border-inactive = 414868
header = 9aa5ce
highlight = 414868
main = 24283b
notification = 7aa2f7
notification-error = f7768e
subtext = 9aa5ce
text = c0caf5
[ForestGreen]
accent = 939393
accent-active = 939393
accent-inactive = 3e3e29
banner = 939393
border-active = 939393
border-inactive = 515235
header = 656641
highlight = 656641
main = 3e3e29
notification = 8c8e59
notification-error = 787a4d
subtext = 838383
text = a3a3a3
[EverforestDarkMedium]
;https://github.com/sainnhe/everforest
accent = a7c080
accent-active = a7c080
accent-inactive = 2d353b
banner = a7c080
border-active = a7c080
border-inactive = 343f44
header = 475258
highlight = 425047
main = 2d353b
notification = 83c092
notification-error = e67e80
subtext = 859289
text = D3c6aa

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More