mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
feat(i3): dont open terminal if no note was selected
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user