diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-05-05 22:21:59 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-05-05 22:21:59 +0200 |
| commit | e6f19ed63979844ea259f69b8ab0702586a69d68 (patch) | |
| tree | 58ed76c5f2f1703fff26ed08bc0f3fa7d5d5831f | |
| parent | 8f1bad5de975e24e641ff7a18a665f8a6cd48774 (diff) | |
| download | scripts-e6f19ed63979844ea259f69b8ab0702586a69d68.tar.gz scripts-e6f19ed63979844ea259f69b8ab0702586a69d68.zip | |
Added comments for ksh completion
Diffstat (limited to '')
| -rwxr-xr-x | brightness | 4 | ||||
| -rwxr-xr-x | open-file | 2 | ||||
| -rwxr-xr-x | secret | 4 | ||||
| -rwxr-xr-x | trash | 3 |
4 files changed, 11 insertions, 2 deletions
| @@ -4,6 +4,10 @@ | |||
| 4 | # Requires: xbacklight, a notification program such as herbe or notify-send | 4 | # Requires: xbacklight, a notification program such as herbe or notify-send |
| 5 | # Usage: brightness {inc|dec} n | 5 | # Usage: brightness {inc|dec} n |
| 6 | 6 | ||
| 7 | # ksh completion | ||
| 8 | # set -A complete_brightness_1 inc dec | ||
| 9 | # set -A complete_brightness_2 5 | ||
| 10 | |||
| 7 | #notify="notify-send" | 11 | #notify="notify-send" |
| 8 | notify="herbe" | 12 | notify="herbe" |
| 9 | 13 | ||
| @@ -2,8 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | # Inspired by https://github.com/salman-abedin/launch.sh | 3 | # Inspired by https://github.com/salman-abedin/launch.sh |
| 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 | ||
| 6 | # Use -t to specify mimetype | ||
| 7 | # Requires: dmenu_path or similar (fallback), dmenu-filepicker | 5 | # Requires: dmenu_path or similar (fallback), dmenu-filepicker |
| 8 | 6 | ||
| 9 | menu=${MENU:-dmenu} | 7 | menu=${MENU:-dmenu} |
| @@ -12,6 +12,10 @@ | |||
| 12 | 12 | ||
| 13 | # Requires: openssl, xsel (for clip only) | 13 | # Requires: openssl, xsel (for clip only) |
| 14 | 14 | ||
| 15 | # ksh completion | ||
| 16 | # set -A complete_sel_1 clip edit show | ||
| 17 | # set -A complete_sel_2 box/secret | ||
| 18 | |||
| 15 | opts="aes-256-cbc -iter 1000" # options for openssl | 19 | opts="aes-256-cbc -iter 1000" # options for openssl |
| 16 | timeout=10 # timeout for clip, in ms | 20 | timeout=10 # timeout for clip, in ms |
| 17 | editor=${EDITOR:-vi} | 21 | editor=${EDITOR:-vi} |
| @@ -6,6 +6,9 @@ | |||
| 6 | # Usage: trash [rm FILE(s)|ls|empty] | 6 | # Usage: trash [rm FILE(s)|ls|empty] |
| 7 | # Pretty self-explanatory | 7 | # Pretty self-explanatory |
| 8 | 8 | ||
| 9 | # ksh completion | ||
| 10 | # set -A complete_trash_1 rm ls empty | ||
| 11 | |||
| 9 | trashfolder=$XDG_DATA_HOME/mytrash | 12 | trashfolder=$XDG_DATA_HOME/mytrash |
| 10 | 13 | ||
| 11 | if [ -z "$1" ]; then | 14 | if [ -z "$1" ]; then |
