diff options
Diffstat (limited to 'scripts/unused')
| -rwxr-xr-x | scripts/unused/popup-cal3 | 6 | ||||
| -rwxr-xr-x | scripts/unused/xedit | 9 | ||||
| -rwxr-xr-x | scripts/unused/xedit-filter | 9 |
3 files changed, 24 insertions, 0 deletions
diff --git a/scripts/unused/popup-cal3 b/scripts/unused/popup-cal3 new file mode 100755 index 0000000..6dfed54 --- /dev/null +++ b/scripts/unused/popup-cal3 | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Popup terminal displaying cal -3 | ||
| 4 | # Requires: st (suckless terminal) | ||
| 5 | |||
| 6 | st -T "stfloat" -g 68x11+620+450 -e sh -c 'cal -3; read x' | ||
diff --git a/scripts/unused/xedit b/scripts/unused/xedit new file mode 100755 index 0000000..3f68f24 --- /dev/null +++ b/scripts/unused/xedit | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # My X editor | ||
| 4 | # Requires: terminal | ||
| 5 | |||
| 6 | editor=${EDITOR:-${VISUAL:-vi}} | ||
| 7 | xed=${XEDIT:-"terminal "$editor""} | ||
| 8 | |||
| 9 | $xed "$@" | ||
diff --git a/scripts/unused/xedit-filter b/scripts/unused/xedit-filter new file mode 100755 index 0000000..7caf12c --- /dev/null +++ b/scripts/unused/xedit-filter | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Open stdin in a text editor and sends modified selection to stdout | ||
| 4 | # Requires: xedit | ||
| 5 | |||
| 6 | f=$(mktemp) | ||
| 7 | cat > "$f" | ||
| 8 | xedit "$f" && cat "$f" | ||
| 9 | |||
