dotfiles/.config/scripts/wm/menuitems/manpages.sh

9 lines
140 B
Bash
Executable File

#!/bin/sh
#
# Views manpages as pdf.
#
name=$(man -k . | rofi -dmenu | awk '{print($1)}')
[[ ! -z $name ]] && man -Tpdf $name | zathura -