From 24acce9523def4840451d46c517ee63b174d120f Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Thu, 15 Jun 2023 23:55:45 +0300 Subject: [PATCH] Added funkwhale ASCII icon when starting --- .icon.txt | 14 ++++++++++++++ funkwhale_cli.py | 5 +++++ 2 files changed, 19 insertions(+) create mode 100644 .icon.txt diff --git a/.icon.txt b/.icon.txt new file mode 100644 index 0000000..0693000 --- /dev/null +++ b/.icon.txt @@ -0,0 +1,14 @@ + .'''... ..''''. + '''''''......''''''' + ''''''''''''''. + .''''. + .''. + .''. +:u, 'uu .uu. .uu. :u' .uu +.oo oo, uo;'';oo. .oo uo, + :o; uo;. .,oo ;ou + :o:. uo;'......';oo ;o: + .ou,. ,oooo; .,uo. + :o:,.. ..':ou + oou:;;;;:uoo + 'uu' diff --git a/funkwhale_cli.py b/funkwhale_cli.py index b629c67..d5dbfb2 100755 --- a/funkwhale_cli.py +++ b/funkwhale_cli.py @@ -13,10 +13,15 @@ import src.mpv_control import json import os from shlex import quote +from shutil import get_terminal_size from pyfzf.pyfzf import FzfPrompt fzf = FzfPrompt() +os.system('clear') +if get_terminal_size().columns > 32: + print('\n\n') + os.system('cat .icon.txt') def main():