From d8d52f90ffce5db92675c624f32d497d2e15fceb Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Sun, 7 Jun 2026 21:19:28 +0200 Subject: misc: add notes launcher --- .local/bin/notes | 9 +++++++++ .local/share/applications/net.local.notes.desktop | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100755 .local/bin/notes create mode 100644 .local/share/applications/net.local.notes.desktop (limited to '.local') diff --git a/.local/bin/notes b/.local/bin/notes new file mode 100755 index 0000000..05ca7c2 --- /dev/null +++ b/.local/bin/notes @@ -0,0 +1,9 @@ +#!/usr/bin/bash +set -euo pipefail + +# Open the notes directory in foot, inside a persistent tmux session named +# "notes" (stolen if it already exists), landing straight into an fzf picker +cd "$NOTES_DIR" +exec foot --app-id=notes -- \ + tmux new-session -A -D -s notes -- \ + nvim -c "NotesFindTags" diff --git a/.local/share/applications/net.local.notes.desktop b/.local/share/applications/net.local.notes.desktop new file mode 100644 index 0000000..b6f4200 --- /dev/null +++ b/.local/share/applications/net.local.notes.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Exec=/home/tvanbesi/.local/bin/notes +Name=notes +NoDisplay=true +StartupNotify=false +Type=Application +X-KDE-GlobalAccel-CommandShortcut=true -- cgit v1.3.1