diff options
Diffstat (limited to 'rofi-task-names')
| -rwxr-xr-x | rofi-task-names | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/rofi-task-names b/rofi-task-names deleted file mode 100755 index 965bb93..0000000 --- a/rofi-task-names +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -set -eu - -DB="$HOME/.local/share/cheat-sheets/task-tags.tsv" - -[ -f "$DB" ] || exit 1 - -choice="$( - cat "$DB" | - rofi -dmenu -i -p 'Naming conventions ›' -)" - -[ -n "${choice:-}" ] || exit 0 - -# First column = keystrokes -keys="$(printf '%s' "$choice" | cut -f1)" - -# Clipboard (Wayland/X11) -if command -v wl-copy >/dev/null 2>&1; then - printf '%s' "$keys" | wl-copy -elif command -v xclip >/dev/null 2>&1; then - printf '%s' "$keys" | xclip -selection clipboard -else - printf '%s\n' "$keys" -fi - |
