mirror of
https://github.com/kmein/niveum
synced 2026-03-18 02:51:08 +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
|
cd ~/notes
|
||||||
find . -type f -printf "%T@ %p\n" \
|
note_file=$(find . -type f -printf "%T@ %p\n" | sort --reverse --numeric-sort | cut --delimiter=" " --fields=2 | dmenu -i)
|
||||||
| sort --reverse --numeric-sort \
|
if test "$note_file"
|
||||||
| cut --delimiter=" " --fields=2 \
|
then
|
||||||
| dmenu -i \
|
i3-sensible-terminal -e "$EDITOR" "$note_file"
|
||||||
| xargs i3-sensible-terminal -e "$EDITOR"
|
fi
|
||||||
''
|
''
|
||||||
}";
|
}";
|
||||||
"${modifier}+p" = "exec --no-startup-id ${pkgs.pass}/bin/passmenu -l 5";
|
"${modifier}+p" = "exec --no-startup-id ${pkgs.pass}/bin/passmenu -l 5";
|
||||||
|
|||||||
Reference in New Issue
Block a user