From 646bb0d8df0e720c966dc2992dcf7fe1154d17cf Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Sat, 24 Jan 2026 22:39:49 +0100 Subject: added fix-sanctum.sh to fix wg on host, added rofi-notmuch to give cheatsheet --- rofi-notmuch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 rofi-notmuch (limited to 'rofi-notmuch') diff --git a/rofi-notmuch b/rofi-notmuch new file mode 100755 index 0000000..8fa5097 --- /dev/null +++ b/rofi-notmuch @@ -0,0 +1,26 @@ +#!/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