diff options
| author | BardofSprites <[email protected]> | 2024-10-08 07:00:23 -0400 |
|---|---|---|
| committer | BardofSprites <[email protected]> | 2024-10-08 07:00:23 -0400 |
| commit | 1888f21ea46acbf7b863b711310e5f5e6e9c16d1 (patch) | |
| tree | 461b22f705c1d86ef3cb5dcfff93daf201b18cc5 | |
| parent | ea205285a1a759f6adfef66bee2cbae59d6b2037 (diff) | |
make launching flatpak easy
| -rwxr-xr-x | bin/.local/bin/scripts/launch-flatpak | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bin/.local/bin/scripts/launch-flatpak b/bin/.local/bin/scripts/launch-flatpak new file mode 100755 index 0000000..16b4365 --- /dev/null +++ b/bin/.local/bin/scripts/launch-flatpak @@ -0,0 +1,23 @@ +#!/bin/bash + +flatpaks="Anki\nCalibre\nLibreOffice\nZealDocs" +chosen=$(echo -e "$flatpaks" | dmenu -p "Select flatpak: ") + +case "$chosen" in + "Anki") + flatpak run net.ankiweb.Anki + ;; + "Calibre") + flatpak run com.calibre_ebook.calibre + ;; + "LibreOffice") + flatpak run org.libreoffice.LibreOffice + ;; + "ZealDocs") + flatpak run org.zealdocs.Zeal + ;; + *) + echo "flatpak not installed" + exit 1 + ;; +esac |
