aboutsummaryrefslogtreecommitdiff
path: root/open-file
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-10-11 09:03:45 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-10-11 09:04:14 +0200
commita32e6b3ea99cbb16bbadf975e83e3a29732db450 (patch)
treef2d804e4bc5c567ae22eb3ff91c0aee6240da949 /open-file
parent2874214003d88825f4949525902fc1e8f0cb1b12 (diff)
downloadscripts-a32e6b3ea99cbb16bbadf975e83e3a29732db450.tar.gz
scripts-a32e6b3ea99cbb16bbadf975e83e3a29732db450.zip
Make app choice more configurable
Diffstat (limited to 'open-file')
-rwxr-xr-xopen-file10
1 files changed, 5 insertions, 5 deletions
diff --git a/open-file b/open-file
index 8b23dcc..c985bf4 100755
--- a/open-file
+++ b/open-file
@@ -12,11 +12,11 @@ menu="dmenu -i -l 15"
12video=${VIDEO:-vlc} 12video=${VIDEO:-vlc}
13music=${MUSIC:-vlc} 13music=${MUSIC:-vlc}
14pdf=${PDF:-zathura} 14pdf=${PDF:-zathura}
15img="nsxiv" 15img="${IMGVIEW:-nsxiv}"
16word="libreoffice" 16word="${WORDS:-libreoffice}"
17sheet="libreoffice" 17sheet="${SHEETS:-libreoffice}"
18html="firefox --new-window" 18html="${BROWSER:-firefox} --new-window"
19xedit="xedit" 19xedit="${XEDIT:-xedit}"
20 20
21usage() { 21usage() {
22 echo "Usage: open-file [-m MENU] [-s LAUNCHER] [-t MIMETYPE] [files...]" 22 echo "Usage: open-file [-m MENU] [-s LAUNCHER] [-t MIMETYPE] [files...]"

Generated with cgit - Back to sebastiano.tronto.net