aboutsummaryrefslogtreecommitdiff
path: root/open-file
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2022-02-10 18:38:59 +0100
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2022-02-10 18:38:59 +0100
commitcb8f9102498eddb8cd3cb907a2d64dd344a92910 (patch)
tree91dca7118da7bcf34a146a155ea8a7faa8b7a9a6 /open-file
parent53f313bbdc7fb7d6af99d3e7f91c3c5a3bc66538 (diff)
downloadscripts-cb8f9102498eddb8cd3cb907a2d64dd344a92910.tar.gz
scripts-cb8f9102498eddb8cd3cb907a2d64dd344a92910.zip
Removed environment variables for default programs. Some have been replaced by their own script.
Diffstat (limited to '')
-rwxr-xr-xopen-file20
1 files changed, 10 insertions, 10 deletions
diff --git a/open-file b/open-file
index 055aad2..848fd9b 100755
--- a/open-file
+++ b/open-file
@@ -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
10menu=${MENU:-dmenu} 9menu=${MENU:-dmenu}
11 10
12video=${VIDEOPLAYER:-mpv} 11# Change default apps here
13music=${MUSICPLAYER:-mpv} 12video="mpv"
14pdf=${VIEWER:-zathura} 13music="mpv --player-operation-mode=pseudo-gui"
15img=${IMAGEVIEWER:-imv} 14pdf="zathura"
16word=${TEXTDOCUMENT:-libreoffice} 15img="imv"
17sheet=${SPREADSHEET:-libreoffice} 16word="libreoffice"
18html=${HTMLVIEWER:-firefox} 17sheet="libreoffice"
19xedit=${XEDITOR:-gedit} 18html="firefox --new-window"
19xedit="xedit"
20 20
21openfile() { 21openfile() {
22 f="$@" 22 f="$@"

Generated with cgit - Back to sebastiano.tronto.net