Now works with Fedora
This commit is contained in:
28
bin/ascii.sh
Normal file
28
bin/ascii.sh
Normal file
@ -0,0 +1,28 @@
|
||||
ascii_art='
|
||||
__ _ _ _.--._
|
||||
/ _\_ _ _ __ | |__ __ _| |_ _.-.' `.-._
|
||||
\ \| | | | '_ \| '_ \ / _` | __| .' ./`--...--' \ `.
|
||||
_\ \ |_| | | | | | | | (_| | |_ `.'.`--.._..--' .'
|
||||
\__/\__,_|_| |_|_| |_|\__,_|\__| `-..__ __..-'
|
||||
````
|
||||
'
|
||||
|
||||
# Define the color gradient (shades of cyan and blue)
|
||||
colors=(
|
||||
'\033[38;5;81m' # Cyan
|
||||
'\033[38;5;75m' # Light Blue
|
||||
'\033[38;5;69m' # Sky Blue
|
||||
'\033[38;5;63m' # Dodger Blue
|
||||
'\033[38;5;57m' # Deep Sky Blue
|
||||
'\033[38;5;51m' # Cornflower Blue
|
||||
'\033[38;5;45m' # Royal Blue
|
||||
)
|
||||
|
||||
# Split the ASCII art into lines
|
||||
IFS=$'\n' read -rd '' -a lines <<<"$ascii_art"
|
||||
|
||||
# Print each line with the corresponding color
|
||||
for i in "${!lines[@]}"; do
|
||||
color_index=$((i % ${#colors[@]}))
|
||||
echo -e "${colors[color_index]}${lines[i]}"
|
||||
done
|
11
bin/omakub
11
bin/omakub
@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
source $OMAKUB_PATH/ascii.sh
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
SUB=$(gum choose "Help" "Theme" "Font" "Install" "Update" --height 8 --header "" | tr '[:upper:]' '[:lower:]')
|
||||
else
|
||||
SUB=$1
|
||||
fi
|
||||
|
||||
[ -n "$SUB" ] && source $OMAKUB_PATH/bin/omakub-$SUB
|
@ -1,2 +0,0 @@
|
||||
HELP=$(gum choose "Hotkeys" "Commands" "Tactile" --header "What do you need help with?" --height 5 | tr '[:upper:]' '[:lower:]')
|
||||
[ -n "$HELP" ] && gum pager <$OMAKUB_PATH/help/$HELP.md
|
@ -1,3 +0,0 @@
|
||||
cd $OMAKUB_PATH
|
||||
git pull
|
||||
cd -
|
11
bin/sunhat
Executable file
11
bin/sunhat
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
source $SUNHAT_PATH/bin/ascii.sh
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
SUB=$(gum choose "Theme" "Font" "Install" "Update" --height 8 --header "" | tr '[:upper:]' '[:lower:]')
|
||||
else
|
||||
SUB=$1
|
||||
fi
|
||||
|
||||
[ -n "$SUB" ] && source $SUNHAT_PATH/bin/sunhat-$SUB
|
@ -1,10 +1,12 @@
|
||||
# Pick a preconfigured theme
|
||||
FONT=$(gum choose "Cascadia Mono" "Fira Mono" "JetBrains Mono" "Meslo" --header "Choose your programming font:" --height 6 | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
|
||||
FONT=$(gum choose "Cascadia Mono" "Victor Mono" "Fira Mono" "JetBrains Mono" "Meslo" --header "Choose your programming font:" --height 6 | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
|
||||
|
||||
[ ! -n "$FONT" ] && exit 0
|
||||
|
||||
if [ "$FONT" == "cascadia-mono" ]; then
|
||||
NERD_FONT="CaskaydiaMono Nerd Font"
|
||||
elif [ "$FONT" == "victor-mono" ]; then
|
||||
NERD_FONT="VictorMono Nerd Font"
|
||||
elif [ "$FONT" == "fira-mono" ]; then
|
||||
NERD_FONT="FiraMono Nerd Font"
|
||||
elif [ "$FONT" == "jetbrains-mono" ]; then
|
||||
@ -14,5 +16,4 @@ elif [ "$FONT" == "meslo" ]; then
|
||||
fi
|
||||
|
||||
gsettings set org.gnome.desktop.interface monospace-font-name "$NERD_FONT 10"
|
||||
cp $OMAKUB_PATH/fonts/alacritty/$FONT.toml ~/.config/alacritty/font.toml
|
||||
sed -i "s/\"editor.fontFamily\": \".*\"/\"editor.fontFamily\": \"$NERD_FONT\"/g" ~/.config/Code/User/settings.json
|
@ -1,2 +1,2 @@
|
||||
INSTALLER=$(gum file $OMAKUB_PATH/install)
|
||||
INSTALLER=$(gum file $SUNHAT_PATH/install)
|
||||
[ -n "$INSTALLER" ] && gum confirm "Run installer?" && source $INSTALLER
|
@ -5,10 +5,9 @@ THEME=$(gum choose "${THEME_NAMES[@]}" --header "Choose your theme" --height 9 |
|
||||
[ ! -n "$THEME" ] && exit 0
|
||||
|
||||
# Install theme in Gnome, Terminal, and both default editors
|
||||
source $OMAKUB_PATH/themes/gnome/$THEME.sh
|
||||
cp $OMAKUB_PATH/themes/alacritty/$THEME.toml ~/.config/alacritty/theme.toml
|
||||
cp $OMAKUB_PATH/themes/neovim/$THEME.lua ~/.config/nvim/lua/plugins/theme.lua
|
||||
sed -i "s/theme \".*\"/theme \"$THEME\"/g" ~/.config/zellij/config.kdl
|
||||
source $SUNHAT_PATH/themes/gnome/$THEME.sh
|
||||
#cp $SUNHAT_PATH/themes/kitty/$THEME.conf ~/.config/kitty/kitty.conf
|
||||
#cp $SUNHAT_PATH/themes/neovim/$THEME.lua ~/.config/nvim/lua/gib_nvim/colors.lua
|
||||
|
||||
# Translate to specific VSC theme name
|
||||
if [ "$THEME" == "gruvbox" ]; then
|
||||
@ -36,4 +35,4 @@ fi
|
||||
code --install-extension $VSC_EXTENSION > /dev/null
|
||||
sed -i "s/\"workbench.colorTheme\": \".*\"/\"workbench.colorTheme\": \"$VSC_THEME\"/g" ~/.config/Code/User/settings.json
|
||||
|
||||
echo "Restart your terminal for a full theme change (Super + W, then start again with Alt + 2)"
|
||||
echo "Restart your terminal for a full theme change (Super + Q to close. Super + T to open again)"
|
3
bin/sunhat-update
Normal file
3
bin/sunhat-update
Normal file
@ -0,0 +1,3 @@
|
||||
cd $SUNHAT_PATH
|
||||
git pull
|
||||
cd -
|
Reference in New Issue
Block a user