this repo has no description

add bat configuration and emoji picker

Changed files
+37
bat
.config
bat
scripts
+1
.gitignore
···
···
+
bat/.config/bat/themes/
+8
bat/.config/bat/config
···
···
+
--theme="Catppuccin-mocha"
+
--style="numbers"
+
--italic-text=always
+
--color=auto
+
--paging=auto
+
--tabs=4
+
--squeeze-blank
+
--set-terminal-title
+16
install.sh
···
fi
}
command_needed stow
command_needed fc-list
command_needed fc-cache
command_needed curl
command_needed jq
install_apple_emojis
···
command_exists ghostty
stow ghostty
···
fi
}
+
function install_bat_theme() {
+
mkdir -pv ~/.config/bat/themes/
+
curl -L -o ~/.config/bat/themes/Catppuccin\ Mocha.tmTheme 'https://raw.githubusercontent.com/catppuccin/bat/main/themes/Catppuccin Mocha.tmTheme'
+
}
+
command_needed stow
command_needed fc-list
command_needed fc-cache
command_needed curl
command_needed jq
+
command_needed wl-copy
+
+
stow xdg-user-dirs
install_apple_emojis
···
command_exists ghostty
stow ghostty
+
+
command_needed bat
+
stow bat
+
install_bat_theme
+
bat cache --clear
+
bat cache --build
+
+
stow scripts
+12
scripts/emoji-picker
···
···
+
#!/usr/bin/env bash
+
+
EMOJI_FILE="$HOME/.local/state/emoji.json"
+
if [ ! -f "$EMOJI_FILE" ]; then
+
mkdir -p "$(dirname "$EMOJI_FILE")"
+
curl -sSL https://raw.githubusercontent.com/muan/emojilib/refs/heads/main/dist/emoji-en-US.json -o "$EMOJI_FILE"
+
fi
+
+
jq -r 'to_entries[] | "\(.key)\t\(.value[])"' "$EMOJI_FILE" \
+
| bemenu -i -p "emoji: " \
+
| cut -f1 \
+
| wl-copy