This commit is contained in:
agryphus 2025-02-09 22:20:34 -05:00
parent 293cd5f022
commit d60aa6a4bc
4 changed files with 6 additions and 4 deletions

View file

@ -1,12 +1,13 @@
#!/bin/sh
sel="$(man -k . | fuzzel --dmenu -i -p "Man page:")"
sel="$(man -k . | fzf --prompt "Man page: ")"
[ "$sel" = "" ] && exit # Exit on no selection
# Selection comes in the form of:
# $program ($num) - $desc
# Need to run `man $num $program`
page="$(echo "$sel" | awk -F'[()]' '{print $2" "$1}')"
# nohup $TERMINAL -e man $page >/dev/null 2>&1 &
hyprctl dispatch exec [floating] "foot -W 78x38 -e man $page"
# hyprctl dispatch exec [floating] "foot -W 78x38 -e man $page"
man $page