diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-11-02 08:07:21 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-11-02 08:07:21 +0100 |
| commit | 302ac9f5271796d203772b7ff6b9a737c8e6da73 (patch) | |
| tree | 7e4e3ae23762f9108429d2c21d494600396938cf /open-file | |
| parent | 6edcf79ec3474dc748bf3914099983c3ab51affe (diff) | |
| parent | 8aa8a247985a08add0f92a3d24272408526003ff (diff) | |
| download | scripts-302ac9f5271796d203772b7ff6b9a737c8e6da73.tar.gz scripts-302ac9f5271796d203772b7ff6b9a737c8e6da73.zip | |
Merge branch 'main' of https://github.com/sebastianotronto/scripts into main
Diffstat (limited to 'open-file')
| -rwxr-xr-x | open-file | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -5,6 +5,8 @@ | |||
| 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) |
| 8 | # environment variables for default programs need to be set | ||
| 9 | # (I might remove this requirement at some point) | ||
| 8 | 10 | ||
| 9 | menu=${MENU:-dmenu} | 11 | menu=${MENU:-dmenu} |
| 10 | 12 | ||
| @@ -50,7 +52,7 @@ case "$mimetype" in | |||
| 50 | $launcher $SPREADSHEET "$1" | 52 | $launcher $SPREADSHEET "$1" |
| 51 | ;; | 53 | ;; |
| 52 | text/html | text/enriched) | 54 | text/html | text/enriched) |
| 53 | $launcher $BROWSER --new-window "$1" | 55 | $launcher $HTMLVIEWER "$1" |
| 54 | ;; | 56 | ;; |
| 55 | text/*) | 57 | text/*) |
| 56 | $launcher $XEDITOR "$1" | 58 | $launcher $XEDITOR "$1" |
