mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-31 05:59:22 +00:00
Add a very basic font selector for terminal
This commit is contained in:
@ -12,10 +12,15 @@ show_ascii_art() {
|
|||||||
main_menu() {
|
main_menu() {
|
||||||
show_ascii_art
|
show_ascii_art
|
||||||
|
|
||||||
local options=("Theme" "Setup" "Update" "Manual" "Exit")
|
local options=("Theme" "Font" "Setup" "Update" "Manual" "Exit")
|
||||||
choice=$(printf "%s\n" "${options[@]}" | gum choose --header "") || exit 0
|
choice=$(printf "%s\n" "${options[@]}" | gum choose --header "") || exit 0
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
Theme) theme_menu ;;
|
Theme) theme_menu ;;
|
||||||
|
Font)
|
||||||
|
omarchy-font-menu
|
||||||
|
ack_command
|
||||||
|
main_menu
|
||||||
|
;;
|
||||||
Update) update_menu ;;
|
Update) update_menu ;;
|
||||||
Setup) setup_menu ;;
|
Setup) setup_menu ;;
|
||||||
Manual) open_manual ;;
|
Manual) open_manual ;;
|
||||||
|
12
bin/omarchy-font-menu
Executable file
12
bin/omarchy-font-menu
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
font=$(
|
||||||
|
fc-list :spacing=100 -f "%{family[0]}\n" |
|
||||||
|
grep -v -i -E 'emoji|signwriting' |
|
||||||
|
sort -u |
|
||||||
|
gum choose --header "Choose terminal font"
|
||||||
|
)
|
||||||
|
|
||||||
|
if [[ -n "$font" ]]; then
|
||||||
|
sed -i "s/family = \".*\"/family = \"$font\"/g" ~/.config/alacritty/alacritty.toml
|
||||||
|
fi
|
Reference in New Issue
Block a user