From 0c983e55a42d58c84a447ccf42b33fef5fe37666 Mon Sep 17 00:00:00 2001 From: MikeG Date: Wed, 9 Oct 2024 17:22:35 -0400 Subject: [PATCH] added quick note script and keyboard shortcut --- .config/sway/config | 3 ++- Scripts/quick-note.sh | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 Scripts/quick-note.sh diff --git a/.config/sway/config b/.config/sway/config index 8db0be4..0c0e291 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -149,7 +149,7 @@ input "10248:257:FTCS1000:00_2808:0101_Touchpad" { bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right -#r +# # Workspaces: # # Switch to workspace @@ -249,6 +249,7 @@ bindsym XF86MonBrightnessDown exec brightnessctl set 5%- && /home/emge/Scripts/b bindsym XF86MonBrightnessUp exec brightnessctl set 5%+ && /home/emge/Scripts/brightness_notif.sh bindsym Print exec /home/emge/Scripts/screenshot.sh bindsym $mod+Shift+s exec /home/emge/Scripts/screenshot-select.sh +bindsym $mod+Shift+u exec /home/emge/Scripts/quick-note.sh # # Status Bar: diff --git a/Scripts/quick-note.sh b/Scripts/quick-note.sh new file mode 100755 index 0000000..fdd320b --- /dev/null +++ b/Scripts/quick-note.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# open quicknote + +# set quick note directory +dir="/home/emge/Notes/QuickNotes" + +# set current date +curDate=$(date +"%Y-%m-%d") + +file=$dir$curDate".md" + +foot nvim $file