diff options
Diffstat (limited to 'open-file')
| -rwxr-xr-x | open-file | 20 |
1 files changed, 10 insertions, 10 deletions
| @@ -4,19 +4,19 @@ | |||
| 4 | # Launches files based on their mimetypes | 4 | # Launches files based on their mimetypes |
| 5 | # Use option -s devour to swallow or -s " " to open normally from terminal | 5 | # Use option -s devour to swallow or -s " " to open normally from terminal |
| 6 | # Use -t to specify mimetype | 6 | # Use -t to specify mimetype |
| 7 | # Requires: dmenu_path or similar (fallback) | 7 | # Requires: dmenu_path or similar (fallback), dmenu-filepicker |
| 8 | # dmenu-filepicker | ||
| 9 | 8 | ||
| 10 | menu=${MENU:-dmenu} | 9 | menu=${MENU:-dmenu} |
| 11 | 10 | ||
| 12 | video=${VIDEOPLAYER:-mpv} | 11 | # Change default apps here |
| 13 | music=${MUSICPLAYER:-mpv} | 12 | video="mpv" |
| 14 | pdf=${VIEWER:-zathura} | 13 | music="mpv --player-operation-mode=pseudo-gui" |
| 15 | img=${IMAGEVIEWER:-imv} | 14 | pdf="zathura" |
| 16 | word=${TEXTDOCUMENT:-libreoffice} | 15 | img="imv" |
| 17 | sheet=${SPREADSHEET:-libreoffice} | 16 | word="libreoffice" |
| 18 | html=${HTMLVIEWER:-firefox} | 17 | sheet="libreoffice" |
| 19 | xedit=${XEDITOR:-gedit} | 18 | html="firefox --new-window" |
| 19 | xedit="xedit" | ||
| 20 | 20 | ||
| 21 | openfile() { | 21 | openfile() { |
| 22 | f="$@" | 22 | f="$@" |
