Mousai icon indicating copy to clipboard operation
Mousai copied to clipboard

Use Mousai from the command line

Open onny opened this issue 3 years ago • 5 comments

Hey, it would be cool to use Mousai from the commandline like

mousai --recognize-audio

and it would print the result without using the GUI. Best regards Jonas

onny avatar Apr 06 '21 11:04 onny

Nice idea, although, I'm currently busy with school. I'll try to implement it on weekends, together with new features

Also, with flatpak it might be flatpak run io.github.seadve.Kooha --args, so it may be longer than what's convenient.

SeaDve avatar Apr 06 '21 11:04 SeaDve

Any updates. BTW, thanks for do this.

abinlatheef avatar Feb 06 '22 12:02 abinlatheef

The codebase has been refactored to simplify the implementation for this.

SeaDve avatar Jul 31 '22 04:07 SeaDve

Nice idea, although, I'm currently busy with school. I'll try to implement it on weekends, together with new features

Also, with flatpak it might be flatpak run io.github.seadve.Kooha --args, so it may be longer than what's convenient.

This can be simplified by either of the following:

# Solution 1: Alias The Flatpak Command For That App
alias mousai='flatpak run io.github.seadve.Mousai'
mousai --args # Shortest and sweetest

# Solution 2: Add System & User Flatpak Apps to $PATH
PATH="/var/lib/flatpak/exports/bin:${XDG_DATA_HOME:-$HOME/.local/share}/flatpak/exports/bin:$PATH"
io.github.seadve.Mousai --args # Not likely to be confused for a non-flatpak app

ChristianSilvermoon avatar Aug 30 '22 15:08 ChristianSilvermoon

Does --recognize-audio really need to be specified? I would think --hidden or --cli should be enough.

gregorni avatar Apr 13 '23 22:04 gregorni