1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 03:51:07 +01:00

feat: migrate notes workflow to obsidian completely

This commit is contained in:
2023-07-04 09:40:00 +02:00
parent 3138fd23ef
commit bcac6e29d5
2 changed files with 4 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ in {
}; };
systemd.user.services.nextcloud-syncer = { systemd.user.services.nextcloud-syncer = {
enable = true; enable = false;
wants = ["network-online.target"]; wants = ["network-online.target"];
wantedBy = ["default.target"]; wantedBy = ["default.target"];
startAt = "*:00/10"; startAt = "*:00/10";

View File

@@ -277,8 +277,9 @@ in {
PATH=$PATH:${ PATH=$PATH:${
lib.makeBinPath [pkgs.rofi pkgs.findutils pkgs.coreutils] lib.makeBinPath [pkgs.rofi pkgs.findutils pkgs.coreutils]
} }
NOTE_DIR=~/cloud/syncthing/obsidian
cd ~/notes cd "$NOTE_DIR"
note_file=$({ note_file=$({
echo diary/$(date -I).md echo diary/$(date -I).md
echo diary/$(date -I -d yesterday).md echo diary/$(date -I -d yesterday).md
@@ -286,7 +287,7 @@ in {
} | rofi -dmenu -i -p 'notes') } | rofi -dmenu -i -p 'notes')
if test "$note_file" if test "$note_file"
then then
alacritty --working-directory ~/notes -e "$EDITOR" "$note_file" alacritty --working-directory "$NOTE_DIR" -e "$EDITOR" "$note_file"
fi fi
'' ''
}"; }";