Add quick note creating script

This commit is contained in:
ItsDrike 2022-11-19 22:16:05 +01:00
parent 52213e5eed
commit 6749d1003f
No known key found for this signature in database
GPG key ID: B014E761034AF742
2 changed files with 15 additions and 0 deletions

View file

@ -165,6 +165,8 @@ bind = SUPER, X, exec, pcmanfm
bind = SUPER, B, exec, firefox
bind = SUPER, C, exec, qalculate-gtk
bind = , XF86Calculator, exec, qalculate-gtk
bind = SUPER, N, exec, [float] alacritty -e mknote
bind = SUPER_SHIFT, N, exec, [float] alacritty -e lvim ~/TODO
# Notifications
bind = CTRL, grave, exec, dunstctl close

View file

@ -0,0 +1,13 @@
#!/bin/sh
file="$HOME/Personal/Notes/note-$(date +%Y-%m-%d).md"
if [ ! -f "$file" ]; then
echo "# Notes for $(date +%Y-%m-%d)" > "$file"
fi
lvim -c "norm Go" \
-c "norm Go## $(date +%H:%M)" \
-c "norm G2o" \
-c "norm zz" \
-c "startinsert" "$file"