2020-02-03 16:29:53 +00:00
|
|
|
#!/bin/sh
|
2020-07-21 18:02:17 +00:00
|
|
|
alias dmenu="$HOME/darkrc/bin/dmenu-themed "
|
2020-02-03 16:29:53 +00:00
|
|
|
manpage=$(apropos . | awk '{print $1}' | dmenu -p 'Mansplain what?' -l 10 -b)
|
|
|
|
if [ -z "$manpage" ];
|
|
|
|
then echo "Manpage not found or no manpage selected"; exit
|
|
|
|
else man -Tps $manpage | ps2pdf - | zathura -
|
|
|
|
fi
|