From 1956f79f2f9c8baeb9deef9a639a2a8f6469bd1a Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 28 Feb 2024 09:57:27 -0600 Subject: [PATCH] improved notes editor --- home/private_bin/executable_notes-commit | 6 ++++++ home/private_dot_config/hypr/keys.conf | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 home/private_bin/executable_notes-commit diff --git a/home/private_bin/executable_notes-commit b/home/private_bin/executable_notes-commit new file mode 100644 index 0000000..07e47cb --- /dev/null +++ b/home/private_bin/executable_notes-commit @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +GIT_DIR="${HOME}/stuff/notes" +notes +notify-send "$(git -C $GIT_DIR commit -m ":memo:" -- notes)" + diff --git a/home/private_dot_config/hypr/keys.conf b/home/private_dot_config/hypr/keys.conf index 24f0e57..1c11e93 100644 --- a/home/private_dot_config/hypr/keys.conf +++ b/home/private_dot_config/hypr/keys.conf @@ -3,7 +3,7 @@ $mainMod = SUPER # Program binds bind = $mainMod SHIFT, RETURN, exec, wezterm bind = $mainMod, P, exec, ~/.config/rofi/bin/launcher.sh -bind = $mainMod, N, exec, wezterm start --class "notes-editor" -e notes +bind = $mainMod, N, exec, wezterm start --class "notes-editor" -e notes-commit bind = $mainMod SHIFT, Q, killactive, bind = $mainMod SHIFT, L, exec, lock