From 49f6289d511033b8ded1bd8d38f60c4bc5fd0301 Mon Sep 17 00:00:00 2001 From: "ron.record" Date: Mon, 1 Jul 2024 17:36:36 -0700 Subject: [PATCH] Add Kitty Control to main menu --- bin/asciiville | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/bin/asciiville b/bin/asciiville index 4489040c..0aa74d81 100755 --- a/bin/asciiville +++ b/bin/asciiville @@ -682,6 +682,13 @@ select_font() { FIG_TEXT="Journal" fi ;; + Kitty) + if [ "${goBig}" ]; then + FIG_TEXT="Kitty" + else + FIG_TEXT="Kitty" + fi + ;; MusicPlayer) if [ "${goBig}" ]; then FIG_TEXT="MusicPlayerPlus" @@ -2774,6 +2781,7 @@ show_animation_menu() { options+=("Neovim Menu [N]") } } + [ "${have_kc}" ] && options+=("Kitty Control Menu [K]") [ "${have_mpplus}" ] && options+=("MusicPlayerPlus Menu [M]") [ "${have_roon}" ] && options+=("RoonCommandLine Menu [R]") [ "${have_showascii}" ] && options+=("Ascii Art Menu [A]") @@ -3019,6 +3027,16 @@ show_animation_menu() { skip_it_so=1 break ;; + "Kitty Control"*,* | *,"Kitty Control"* | "K",* | *,"K") + [ "${use_figlet}" ] && { + select_font Kitty + show_figlet + } + kitty-control + tput clear + skip_it_so=1 + break + ;; "MusicPlayerPlus"*,* | *,"MusicPlayerPlus"* | "M",* | *,"M") [ "${use_figlet}" ] && { select_font MusicPlayer @@ -3422,6 +3440,7 @@ show_main_menu() { options+=("Neovim Menu [N]") } } + [ "${have_kc}" ] && options+=("Kitty Control Menu [K]") [ "${have_mpplus}" ] && options+=("MusicPlayerPlus Menu [M]") [ "${have_roon}" ] && options+=("RoonCommandLine Menu [R]") options+=("Quit [q]") @@ -3596,6 +3615,16 @@ show_main_menu() { skip_it_so=1 break ;; + "Kitty Control"*,* | *,"Kitty Control"* | "K",* | *,"K") + [ "${use_figlet}" ] && { + select_font Kitty + show_figlet + } + kitty-control + tput clear + skip_it_so=1 + break + ;; "MusicPlayerPlus"*,* | *,"MusicPlayerPlus"* | "M",* | *,"M") [ "${use_figlet}" ] && { select_font MusicPlayer @@ -4122,6 +4151,7 @@ have_lolcat=$(type -p lolcat) use_lol="NO " } have_rich=$(type -p rich) +have_kc=$(type -p kitty-control) have_roon=$(type -p roon) have_speed=$(type -p speedtest-cli) have_splash=$(type -p asciisplash)