Skip to content

Commit 49f6289

Browse files
author
ron.record
committed
Add Kitty Control to main menu
1 parent b7f201f commit 49f6289

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

bin/asciiville

+30
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,13 @@ select_font() {
682682
FIG_TEXT="Journal"
683683
fi
684684
;;
685+
Kitty)
686+
if [ "${goBig}" ]; then
687+
FIG_TEXT="Kitty"
688+
else
689+
FIG_TEXT="Kitty"
690+
fi
691+
;;
685692
MusicPlayer)
686693
if [ "${goBig}" ]; then
687694
FIG_TEXT="MusicPlayerPlus"
@@ -2774,6 +2781,7 @@ show_animation_menu() {
27742781
options+=("Neovim Menu [N]")
27752782
}
27762783
}
2784+
[ "${have_kc}" ] && options+=("Kitty Control Menu [K]")
27772785
[ "${have_mpplus}" ] && options+=("MusicPlayerPlus Menu [M]")
27782786
[ "${have_roon}" ] && options+=("RoonCommandLine Menu [R]")
27792787
[ "${have_showascii}" ] && options+=("Ascii Art Menu [A]")
@@ -3019,6 +3027,16 @@ show_animation_menu() {
30193027
skip_it_so=1
30203028
break
30213029
;;
3030+
"Kitty Control"*,* | *,"Kitty Control"* | "K",* | *,"K")
3031+
[ "${use_figlet}" ] && {
3032+
select_font Kitty
3033+
show_figlet
3034+
}
3035+
kitty-control
3036+
tput clear
3037+
skip_it_so=1
3038+
break
3039+
;;
30223040
"MusicPlayerPlus"*,* | *,"MusicPlayerPlus"* | "M",* | *,"M")
30233041
[ "${use_figlet}" ] && {
30243042
select_font MusicPlayer
@@ -3422,6 +3440,7 @@ show_main_menu() {
34223440
options+=("Neovim Menu [N]")
34233441
}
34243442
}
3443+
[ "${have_kc}" ] && options+=("Kitty Control Menu [K]")
34253444
[ "${have_mpplus}" ] && options+=("MusicPlayerPlus Menu [M]")
34263445
[ "${have_roon}" ] && options+=("RoonCommandLine Menu [R]")
34273446
options+=("Quit [q]")
@@ -3596,6 +3615,16 @@ show_main_menu() {
35963615
skip_it_so=1
35973616
break
35983617
;;
3618+
"Kitty Control"*,* | *,"Kitty Control"* | "K",* | *,"K")
3619+
[ "${use_figlet}" ] && {
3620+
select_font Kitty
3621+
show_figlet
3622+
}
3623+
kitty-control
3624+
tput clear
3625+
skip_it_so=1
3626+
break
3627+
;;
35993628
"MusicPlayerPlus"*,* | *,"MusicPlayerPlus"* | "M",* | *,"M")
36003629
[ "${use_figlet}" ] && {
36013630
select_font MusicPlayer
@@ -4122,6 +4151,7 @@ have_lolcat=$(type -p lolcat)
41224151
use_lol="NO "
41234152
}
41244153
have_rich=$(type -p rich)
4154+
have_kc=$(type -p kitty-control)
41254155
have_roon=$(type -p roon)
41264156
have_speed=$(type -p speedtest-cli)
41274157
have_splash=$(type -p asciisplash)

0 commit comments

Comments
 (0)