This commit is contained in:
2025-10-26 03:16:52 +00:00
parent 882a27b1cb
commit 6fd661f286

View File

@@ -4,9 +4,12 @@ shift
page="$1" page="$1"
if [ -z "$page" ]; then if [ -z "$page" ]; then
page="$( page="$(
apropos -s 1,8 . | \ apropos -s 1,5,8 . | \
(~/.local/bin/menu/vertical.sh -p "man" || exec ~/.local/bin/menu/run.sh) | \ ~/.local/bin/menu/vertical.sh -p "man" | \
sed ' s/\s\+\-.*//;s/ //g' sed 's/ (\([^)]*\)).*/.\1/'
)" )"
if [ -z "$page" ]; then
exec ~/.local/bin/menu/run.sh
fi
fi fi
exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "man '$page' || read -n1" exec ~/.local/bin/menu/run-float-sh.sh "man" "$page"