1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(i3): dont open terminal if no note was selected

This commit is contained in:
Kierán Meinhardt
2020-09-15 16:21:23 +02:00
parent 9ee2786315
commit 7e22e8f72a

View File

@@ -213,11 +213,11 @@ in with config.niveum; {
}
cd ~/notes
find . -type f -printf "%T@ %p\n" \
| sort --reverse --numeric-sort \
| cut --delimiter=" " --fields=2 \
| dmenu -i \
| xargs i3-sensible-terminal -e "$EDITOR"
note_file=$(find . -type f -printf "%T@ %p\n" | sort --reverse --numeric-sort | cut --delimiter=" " --fields=2 | dmenu -i)
if test "$note_file"
then
i3-sensible-terminal -e "$EDITOR" "$note_file"
fi
''
}";
"${modifier}+p" = "exec --no-startup-id ${pkgs.pass}/bin/passmenu -l 5";