scripts

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

commit e6f19ed63979844ea259f69b8ab0702586a69d68
parent 8f1bad5de975e24e641ff7a18a665f8a6cd48774
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Thu,  5 May 2022 22:21:59 +0200

Added comments for ksh completion

Diffstat:
Mbrightness | 4++++
Mopen-file | 2--
Msecret | 4++++
Mtrash | 3+++
4 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/brightness b/brightness @@ -4,6 +4,10 @@ # Requires: xbacklight, a notification program such as herbe or notify-send # Usage: brightness {inc|dec} n +# ksh completion +# set -A complete_brightness_1 inc dec +# set -A complete_brightness_2 5 + #notify="notify-send" notify="herbe" diff --git a/open-file b/open-file @@ -2,8 +2,6 @@ # Inspired by https://github.com/salman-abedin/launch.sh # Launches files based on their mimetypes -# Use option -s devour to swallow or -s " " to open normally from terminal -# Use -t to specify mimetype # Requires: dmenu_path or similar (fallback), dmenu-filepicker menu=${MENU:-dmenu} diff --git a/secret b/secret @@ -12,6 +12,10 @@ # Requires: openssl, xsel (for clip only) +# ksh completion +# set -A complete_sel_1 clip edit show +# set -A complete_sel_2 box/secret + opts="aes-256-cbc -iter 1000" # options for openssl timeout=10 # timeout for clip, in ms editor=${EDITOR:-vi} diff --git a/trash b/trash @@ -6,6 +6,9 @@ # Usage: trash [rm FILE(s)|ls|empty] # Pretty self-explanatory +# ksh completion +# set -A complete_trash_1 rm ls empty + trashfolder=$XDG_DATA_HOME/mytrash if [ -z "$1" ]; then