mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-10 02:39:40 +00:00
Add quick note creating script
This commit is contained in:
parent
52213e5eed
commit
6749d1003f
|
@ -165,6 +165,8 @@ bind = SUPER, X, exec, pcmanfm
|
||||||
bind = SUPER, B, exec, firefox
|
bind = SUPER, B, exec, firefox
|
||||||
bind = SUPER, C, exec, qalculate-gtk
|
bind = SUPER, C, exec, qalculate-gtk
|
||||||
bind = , XF86Calculator, 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
|
# Notifications
|
||||||
bind = CTRL, grave, exec, dunstctl close
|
bind = CTRL, grave, exec, dunstctl close
|
||||||
|
|
13
home/.local/bin/scripts/cli/mknote
Executable file
13
home/.local/bin/scripts/cli/mknote
Executable 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"
|
Loading…
Reference in a new issue