diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-02-10 18:38:59 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-02-10 18:38:59 +0100 |
| commit | cb8f9102498eddb8cd3cb907a2d64dd344a92910 (patch) | |
| tree | 91dca7118da7bcf34a146a155ea8a7faa8b7a9a6 /open-file | |
| parent | 53f313bbdc7fb7d6af99d3e7f91c3c5a3bc66538 (diff) | |
| download | scripts-cb8f9102498eddb8cd3cb907a2d64dd344a92910.tar.gz scripts-cb8f9102498eddb8cd3cb907a2d64dd344a92910.zip | |
Removed environment variables for default programs. Some have been replaced by their own script.
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="$@" |
