{ "info": { "author": "yoarch", "author_email": "yo.managements@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# flauncher\nuniversal file launcher for terminal\n\nLaunch any file in terminal with one unique command. flauncher works as a command router and launches the entered files with the according application regarding your preferences settings.\n\nflauncher deals with **audio, image, libreoffice-writer (odt), libreoffice-calc (ods), pdf, rar, tar, tar.gz, tar.xz, tar.bz2, text, tgz, zip and video** files.\n\n# installation\n```sh\nwith pip:\nsudo pip3 install flauncher\n\nwith yay:\nyay -a flauncher\n\nwith yaourt:\nyaourt -a flauncher\n```\n\n# compatibility\npython >= 3\n\n\n# usage\n
\nflauncher [FILE_PATH_01 FILE_PATH_02 ...]\noptions:\n -h, --help show this help message and exit\n\n\n# configuration\nthe settings defining the command to be run for any extension type are located in the *~/.config/flauncher/launchers.json* json file.\n\nif this file doesn't exist, copy the default one located in *~/.config/flauncher/launchers.json* and configure it as you wish.\n\n```sh\n{\n \"audio\": {\n \"type\": \"playlist\",\n \"exts\": [\"mp3\", \"wav\", \"m4a\", \"aac\", \"mp1\", \"mp2\", \"flac\", \"aa\", \"aax\", \"act\", \"aiff\", \"amr\", \"ape\", \"au\", \"awb\", \"dct\", \"dss\", \"dvf\", \"gsm\", \"iklax\", \"ivs\", \"m4b\", \"m4p\", \"mmf\", \"mpc\", \"msv\", \"nmf\", \"nsf\", \"oga\", \"mogg\", \"opus\", \"ra\", \"raw\", \"sin\", \"tta\", \"vox\", \"wma\", \"wv\", \"8svx\"],\n \"cmd\": \"mpv -fs --loop-playlist -script-opts=osc-hidetimeout=6000 --player-operation-mode=pseudo-gui\"\n },\n \"image\": {\n \"type\": \"playlist\",\n \"exts\": [\"jpg\", \"jpeg\", \"png\", \"tif\", \"gif\", \"bmp\", \"pjpeg\", \"jfif\", \"exif\", \"tiff\", \"png\", \"ppm\", \"pgm\", \"pbm\", \"pnm\", \"webp\", \"hdr\", \"heif\", \"bat\", \"bpg\"],\n \"cmd\": \"feh -d -Y -F\"\n },\n \"libreoffice_writer\": {\n \"type\": \"lonely\",\n \"exts\": [\"odt\"],\n \"cmd\": \"libreoffice --writer\"\n },\n \"libreoffice_calc\": {\n \"type\": \"lonely\",\n \"exts\": [\"ods\"],\n \"cmd\": \"libreoffice --calc\"\n },\n \"pdf\": {\n \"type\": \"lonely\",\n \"exts\": [\"pdf\"],\n \"cmd\": \"evince -f\"\n },\n \"rar\": {\n \"type\": \"archive_a\",\n \"exts\": [\"rar\"],\n \"cmd\": \"unrar x\"\n },\n \"tar\": {\n \"type\": \"archive_a\",\n \"exts\": [\"tar\"],\n \"cmd\": \"tar -xvf\"\n },\n \"tar_gz\": {\n \"type\": \"archive_a\",\n \"exts\": [\"tar.gz\"],\n \"cmd\": \"tar -zxvf\"\n },\n \"tar_xz\": {\n \"type\": \"archive_b\",\n \"exts\": [\"tar.xz\"],\n \"cmd\": \"tar --directory FOLDER_PATH -xJf ARCHIVE_PATH\"\n },\n \"tar_bz2\": {\n \"type\": \"archive_a\",\n \"exts\": [\"tar.bz2\"],\n \"cmd\": \"tar jxvf\"\n },\n \"text\": {\n \"type\": \"lonely\",\n \"exts\": [\"text\", \"txt\", \"conf\", \"sh\", \"py\", \"note\", \"log\", \"c\", \"h\", \"js\", \"tmp\", \"json\", \"csv\", \"java\", \"xml\", \"tex\", \"js\"],\n \"cmd\": \"atom\"\n },\n \"tgz\": {\n \"type\": \"archive_a\",\n \"exts\": [\"tgz\"],\n \"cmd\": \"tar -xvzf\"\n },\n \"video\": {\n \"type\": \"playlist\",\n \"exts\": [\"avi\", \"mpeg\", \"mp4\", \"ogg\", \"quicktime\", \"webm\", \"mp2t\", \"flv\", \"mov\", \"webm\", \"mkv\", \"mts\", \"vob\", \"ogv\", \"drc\", \"gif\", \"gifv\", \"mng\", \"mts\", \"m2ts\", \"mwv\", \"yuv\", \"rm\", \"rmvb\", \"asf\", \"amv\", \"m4v\", \"mpg\", \"mpe\", \"mpv\", \"m2v\", \"svi\", \"3gp\", \"3g2\", \"mxf\", \"roq\", \"nsv\", \"f4v\", \"f4p\", \"f4a\", \"f4b\"],\n \"cmd\": \"mpv -fs --loop-playlist -script-opts=osc-hidetimeout=2000\"\n },\n \"zip\": {\n \"type\": \"archive_b\",\n \"exts\": [\"zip\"],\n \"cmd\": \"unzip -d FOLDER_PATH ARCHIVE_PATH\"\n }\n}\n```\n\nby default any audio and video files are launched with **mpv**, any image with **feh**, any pdf with **evince** and any text with the **atom** editor.\nBut feel free to customize it with your application launcher preferences.\n\n# examples\nfor **help**: