Favorite Terminal Applications - BSD
Wildefyr
(29-01-2020, 07:41 AM)z3bra Wrote: * no dedicated project just for building it

In fairness that repository mainly seems to be a 'all-in-one' scripts for installing mpv where the distro provides crap base packages. For us this isn't an issue as we at least grab recent copies of ffmpeg or package it ourselves. ffmpeg is so poorly built on many distros it's a joke, often missing support for the most basic of things. Also I won't hate on a project that is a bit more complicated to build actually providing in-depth documentation /themselves/ on their project.

I don't get how you can live without any configuration at all on your video player, but each to their own. For me the interpolation that mpv provides is worth the upgrade alone. Perhaps it was something to do with youtube-dl to why it doesn't open URLs? youtube-dl breaks every two months or so because of google.
z3bra
I don't hate the project at all. I just don't see any benefits to switching. Honestly I already find mplayer bloated, as all I expect from a video player is to play/pause/seek, and optionally buffer input (not even required, as tee(1) do that well enough).

If mpv break when called with a link to a .mp4 video directly, because of youtube-dl API changing or whatever, then that is one more reason for me to keep using mplayer ^^ At least I know that it does not try to be too smart and simply download/decode the data stream on the fly. If I need youtube-dl in the pipe, I'll add it myself.
wolf
(31-12-2019, 02:13 PM)z3bra Wrote: email: mu, mutt, isync, msmtp, webdump, ldapsearch and a lot of shell glue around it!
Do you deal with multipart HTML messages ?
wolf
audio: mpg123/ffmpeg/cmus/mplayer
video: mplayer
files: coreutils
irc: weechat
shell: ksh
multiplexer: tmux
system monitor: ps / top
editor: vim
screenshot: ImageMagik
image viewer: ImageMagik
mail: mutt
browsing : elinks
password : keepassxc
twee
  • music: cmus, or gtkpod + ipod nano g2
  • video: ffplay
  • files: coreutils, occasionally dired
  • irc: weechat
  • emulator: xterm, st
  • system monitor: ps or top, but i don't care that much
  • text editor: vis, ed
  • screenshot: imagemagick
  • image viewer: imagemagick
  • mail client: mutt, mb
  • internet: gopher, elinks, vf-1
  • other/fun: nethack
z3bra
(13-05-2020, 02:27 AM)wolf Wrote:
(31-12-2019, 02:13 PM)z3bra Wrote: email: mu, mutt, isync, msmtp, webdump, ldapsearch and a lot of shell glue around it!
Do you deal with multipart HTML messages ?

Yup. I use webdump for that, coupled with 'cat -s' to join blank lines together, and 'fmt -s' to force reflowing to a max width of 120 char.
webdump now has the hability to use escape codes to render bold/italics, which makes them pretty nice to read in the terminal !

The full config of my mutt setup involves the following:

Code:
# ~/.muttrc
set allow_ansi = yes
set mailcap_path = "~/.mailcap"
set display_filter = "$HOME/.local/bin/mailfmt"
auto_view text/html

Code:
# ~/.mailcap
text/html; htmldump -c %{charset} %s; copiousoutput

Code:
#!/bin/sh
# ~/.local/bin/mailfmt

w=$(tput cols)
if [ -z "$w" ] || [ "$w" -gt 120 ]; then
        w=120
fi

# trim mutt [-- Attachment --] headers
grep -vE -- '\[-- .* --\]$' | fmt -s -u -w $w

Code:
#!/bin/sh
# ~/.local/bin/htmldump
usage() {
        echo "usage: $(basename $0) [-c charset] file" >&2
}

while getopts 'c:h' OPT; do
        case $OPT in
        c) charset=$OPTARG ;;
        h) usage; exit 0 ;;
        *) usage; exit 1 ;;
        esac
done

shift $((OPTIND - 1))

[ -z "$charset" ] && charset="$(file -i $1 | sed 's/.* charset=//')"
iconv -f $charset -t utf-8 $1 \
        | webdump -a \
        | sed 'y/ / /;s/^\s*$//' \
        | cat -s

This makes pretty nice emails honestly.
Here is your typical marketing email rendered in mutt's pager:
[Image: f82.png]

I also have some scripts to display "text/calendar" messages for invites I receive. I still have to find a way to add them to my outlook calendar though. I expected to have them added automatically to the calendar when I reply to them with an "ACCEPTED" invite attachment, but it does not. I guess I'll have to use outlook's API. yuk.
wolf
Heeeeey... That's really a jewel .
I would like try this setup ASAP. If it work fine with me it will be the end of an entire odyssey.
z3bra
(13-05-2020, 09:14 AM)wolf Wrote: Heeeeey... That's really a jewel .
I would like try this setup ASAP. If it work fine with me it will be the end of an entire odyssey.

To be fair, it's never the end. There are still visual glitches from time to time, and I still didn't sort out displaying links properly.
There is also the whole part about calendar invites, which I've partially scratched (that would actually be worth detailing), but is still missing some parts.

I also have a "cleanbox" script that auto-tidy my mailbox by digging full threads from my various folders when I get a new mail, so I can just archive what's read, and ensure that the whole thread will pop back to my inbox if I get a reply.
I also use this script to auto-archive stuff and cleanup my inbox, but I'm afraid this will eventually grow in a huge shell monster if I don't pay enough attention.
ckester
music: mpg123 (with an ncurses frontend I wrote myself)
video: mpv
music/video streamer: pianobar
file manager: vifm
irc client: none (I've never been into chat)
terminal emulator: st
system monitor: htop (but only when something is slowing my system down. Otherwise I don't bother.)
text editor: vim
screenshot: scrot
torrent client: rtorrent
image viewer: sxiv
mail client: mutt
shell: ksh
other/fun: less, vidir, ncdu, par, wyrd, wcalc, elinks, curseradio-improved, rawdog
opFez
music: cmus
video: vlc
file manager: coreutils, nnn
irc client: irssi, looking for a better one though
terminal emulator: alacritty
system monitor: top
text editor: neovim
screenshot: scrot/grim
torrent client: qbittorrent
image viewer: sxiv
mail client: thunderbird, switching soon
other: mosh




Members  |  Stats  |  Night Mode