From 3cd9138c9d8fb9be248c75330cca9da47f4d2e8a Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Sun, 10 May 2026 22:57:02 +0200 Subject: added a whole bunch of scripts --- rofi-notmuch | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100755 rofi-notmuch (limited to 'rofi-notmuch') diff --git a/rofi-notmuch b/rofi-notmuch deleted file mode 100755 index 8fa5097..0000000 --- a/rofi-notmuch +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -set -eu - -DB="$HOME/.local/share/cheat-sheets/notmuch.tsv" - -[ -f "$DB" ] || exit 1 - -choice="$( - cat "$DB" | - rofi -dmenu -i -p 'Notmuch ›' -)" - -[ -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 - -- cgit v1.3