Skip to content

Instantly share code, notes, and snippets.

@porteusconf
Last active February 24, 2024 02:28
Show Gist options
  • Save porteusconf/8a17b57fccdc7f6fa0bb7e434f0aea04 to your computer and use it in GitHub Desktop.
Save porteusconf/8a17b57fccdc7f6fa0bb7e434f0aea04 to your computer and use it in GitHub Desktop.
create ~/.seeconfig for seeman (GUI "manpage" viewer for X windows) apt install seetxt && seeconfig-for-seeman.sh && seeman seeman
#! /usr/bin/env bash
### https://manpages.debian.org/testing/seetxt/seeman.1.en.html
touch ~/seefilelist
touch ~/seedata
if [ ! -f ~/.seeconfig ]; then
echo "text font: helvetica 12" >> ~/.seeconfig
echo "filelist: /home/$USER/seefilelist" >> ~/.seeconfig
echo "seedata: /home/$USER/seedata" >> ~/.seeconfig
echo "dimensions: 900 600" >> ~/.seeconfig
fi
ls -l ~/.seeconfig
cat ~/.seeconfig
@porteusconf
Copy link
Author

porteusconf commented Feb 18, 2021

Instead of xman try seeman to view man pages in scrollable window with bookmarks, history, etc. Tho old and unchanged for years, it works quite well, and is still in most deb repos, including debian 11 (bullseye): https://manpages.debian.org/testing/seetxt/seeman.1.en.html When you run first run seeman it will warn if "/home/$USER/.seeconfig" file does not exist. This seeconfig-for-seeman.sh creates a minimal ~/.seeconfig file to avoid this warning and other errors/problems.

QUICK START:

You can install with apt in debian 12 bookworm and earlier

sudo apt install seetxt 

For debian 13 trixie, apt does not find it on 2024-02-23, but installing the bullseye deb file worked for me. Download the deb file for your arch from https://packages.debian.org/bullseye/seetxt and use dpgk -i which, for amd64 looks like:

sudo dpkg -i seetxt_0.72-7_amd64.deb 

Run the shell script. then, to open a man page, like for ls, instead of man ls you might like seeman ls better,

   chmod a+x ./seeconfig-for-seeman.sh 
  ./seeconfig-for-seeman.sh 
  seeman  ls 

In seeman window, right-click for menu and shortcuts, such as ctl-N = find next ctl-P = find prev. For man page of seetxt/seeman:

  seeman seetxt

@porteusconf
Copy link
Author

Since seetxt/seeman not updated since 2010, gtkman may be better alternative per: https://askubuntu.com/questions/253705/graphical-user-interface-to-view-man-page (Viewing man pages should not be so convoluted!). Using build_deb.sh from a fork of https://github.com/gapan/gtkman I built the .deb file here:
https://github.com/porteusconf/kiosk/raw/master/gtkman-linux-amd64.tar.gz

@porteusconf
Copy link
Author

By the way, macos for many years had a similar gui man-page viewer called manopen. It has been resurected recently, and even runs on apple-silicon at https://github.com/nickzman/ManOpen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment