From 5a2d75df546df3321b3a20ebe84dae2f91019e84 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 15 Jul 2022 18:17:56 +0430 Subject: secrets --- bin/w3m-sandbox | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100755 bin/w3m-sandbox (limited to 'bin/w3m-sandbox') diff --git a/bin/w3m-sandbox b/bin/w3m-sandbox new file mode 100755 index 0000000..3560442 --- /dev/null +++ b/bin/w3m-sandbox @@ -0,0 +1,99 @@ +#!/usr/bin/env dash +# https://git.sr.ht/~seirdy/bwrap-scripts +progname="$(basename "${0}")" + +help_text="Usage: $progname [OPTION...] [FILE] + +View a file or STDIN in w3m, sandboxed with bubblewrap. +Internet access is blocked; ideal for viewing HTML emails. + +Options: + -h, --help Print this help and exit +" + +usage() { + printf '%s' "$help_text" +} + +# when the user passess bad args, send a msg to stderr and exit +# usage: bad_option