Skip to content

Commit

Permalink
Add Kitty Control to main menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ron.record committed Jul 2, 2024
1 parent b7f201f commit 49f6289
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions bin/asciiville
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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]")
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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]")
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 49f6289

Please sign in to comment.