scripts

Various scripts for UNIX-like systems
git clone https://git.tronto.net/scripts
Download | Log | Files | Refs | README

commit a32e6b3ea99cbb16bbadf975e83e3a29732db450
parent 2874214003d88825f4949525902fc1e8f0cb1b12
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Sat, 11 Oct 2025 09:03:45 +0200

Make app choice more configurable

Diffstat:
Mfeed | 2+-
Mopen-file | 10+++++-----
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/feed b/feed @@ -10,7 +10,7 @@ dir=$HOME/box/sfeed feeddir=$dir/urls destdir=$dir/new readdir=$dir/last -menu="dmenu -l 20 -i" +menu="${FEEDMENU:-dmenu -l 20 -i}" urlopener=open-url usage() { diff --git a/open-file b/open-file @@ -12,11 +12,11 @@ menu="dmenu -i -l 15" video=${VIDEO:-vlc} music=${MUSIC:-vlc} pdf=${PDF:-zathura} -img="nsxiv" -word="libreoffice" -sheet="libreoffice" -html="firefox --new-window" -xedit="xedit" +img="${IMGVIEW:-nsxiv}" +word="${WORDS:-libreoffice}" +sheet="${SHEETS:-libreoffice}" +html="${BROWSER:-firefox} --new-window" +xedit="${XEDIT:-xedit}" usage() { echo "Usage: open-file [-m MENU] [-s LAUNCHER] [-t MIMETYPE] [files...]"