<h1 id="talking-points">Talking Points</h1>
<h2 id="rational">Rational</h2>
<ul>
<li>Sometimes, X.org just doesn't want to work</li>
<li>Esspecially if you are a dumb n00b running Arch</li>
<li>The terminal will always be there for you.</li>
</ul>
<h2 id="applications">Applications:</h2>
<h3 id="my-bashrc">My .bashrc:</h3>
<ul>
<li>Environment Variables:</li>
</ul>
<pre class="bash"><code>export EDITOR=nvim
export PAGER=most
export BROWSER=lynx

export XDG_DATA_HOME=&quot;$HOME/.local/share&quot;
export XDG_CONFIG_HOME=&quot;$HOME/.config&quot;
</code></pre>
<p>PS1: <font color=blue>user</font>@<font color=green>hostname</font>:~ (git_branch) $</p>
<pre class="bash"><code>if [[ $EUID == 0 ]]; then
    export PS1=&quot;\[e[1;31m\]\u\[\e[m\]@\[\e[0;32m\]\h\[\e[m\]:\w\$(__git_ps1) # &quot;
else
    export PS1=&quot;\[e[1;34m\]\u\[\e[m\]@\[\e[0;32m\]\h\[\e[m\]:\w\$(__git_ps1) $ &quot;
fi
</code></pre>
<ul>
<li>Aliases:
<ul>
<li><code>alias vim=nvim</code></li>
<li><code>alias play=mpv</code></li>
</ul></li>
</ul>
<h2 id="productivity-window-manager-tmux">Productivity ("Window Manager"): <a href="#show-notes">tmux</a></h2>
<ul>
<li>Provides an easy way of splitting a tty into various panes</li>
<li>Get multiple workspaces for free with CTL+ALT+F{1,2,3,4,5,6,7}</li>
<li>All of the tiling window manager, none of the X-it</li>
<li>Can set up <code>if [ -t 0 ] &amp;&amp; [[ -z $TMUX ]] &amp;&amp; [[ $- = *i* ]]; then exec tmux; fi</code> in .bashrc in order to have tmux start/stop with your terminal sessiion.</li>
</ul>
<h2 id="music-cmus">Music: <a href="#show-notes">cmus</a></h2>
<ul>
<li>Easy library and playlist management</li>
<li>Dead simple to use (with cmus-tutorial)
<ul>
<li><code>y</code> to yank songs onto a playlist</li>
<li><code>SPA</code> to select a playlist</li>
<li><code>RET</code> to play a song/playlist</li>
<li><code>TAB</code> to switch between panes</li>
</ul></li>
</ul>
<h2 id="pictures-fim">Pictures: <a href="#show-notes">fim</a></h2>
<ul>
<li>Requires user be in the <code>video</code> group for permission to use the Linux framebuffer</li>
</ul>
<h2 id="radiovideosingle-audio-files-mpv">Radio/Video/single audio files: <a href="#show-notes">mpv</a></h2>
<ul>
<li>Can display video in terminal (badly with libcaca)</li>
<li>Can <em>actually</em> display video in linux framebuffer (with drm)</li>
<li>Can handle all of your somafm files/web-video links</li>
<li>Requires <a href="#show-notes">youtube-dl</a> for video</li>
</ul>
<h2 id="podcastsrss-newsboatpodboat">Podcasts/RSS: <a href="#show-notes">newsboat/podboat</a></h2>
<ul>
<li>Orginizes all of your podcasts and RSS feeds into an easy-to-use ncurses interface</li>
<li>Can be set up with <code>player "mpv --save-position-on-quit"</code> to save positions on podcasts</li>
<li><em>Very</em> convinent for articles, less so for podcasts</li>
<li>Really needs better integration with something like cmus</li>
</ul>
<h4 id="runner-up-podfox">Runner Up: <a href="#show-notes">podfox</a></h4>
<ul>
<li>Can be configured with JSON</li>
<li>Has better directory structure than podboat, imo</li>
<li>Tree based structure vs shove everything in ~ by default</li>
</ul>
<h2 id="text-editingword-processing-neovimgitx-flavored-markdownpandoc">Text Editing/Word Processing: <a href="#show-notes">neovim/GitX Flavored Markdown/pandoc</a></h2>
<ul>
<li>Clean modal editing</li>
<li>Can export to whatever with pandoc</li>
<li>Probably not as good as OrgMode if emacs wasn't the HFS+ of text editors</li>
</ul>
<h2 id="audio-recordingpost-processing-ffmpeg">Audio Recording/Post-Processing: <a href="#show-notes">ffmpeg</a></h2>
<ul>
<li>One alias and three scripts in my .bashrc
<ul>
<li>record: <code>alias record="ffmpeg -f alsa -channels 1 -i hw:1"</code></li>
<li>atrim, top-tail, and anorm: Allows me to quickly spin up a recording and run post processing</li>
</ul></li>
</ul>
<pre class="bash"><code>function atrim() {
    if [ $1 ]; then
        local in=&quot;$1&quot;
    else
        local in=&quot;-&quot;
    fi

    if [ $2 ]; then
        local out=&quot;$2&quot;
    else
        local out=&quot;-f nut -&quot;
    fi

    if [[ $# &gt; 2 ]]; then
        echo &quot;atrim: requires 2 or fewer arguments&quot;
        return 1
    fi

    if [ $2 ]; then echo &quot;atrim: silencing $in and saving to $out...&quot;; fi
    ffmpeg -i $in -af silenceremove=start_periods=1:stop_periods=-1:start_threshold=-50dB:stop_threshold=-50dB:stop_duration=0.75 $out \
        2&gt;/dev/null \
        #1&gt;/dev/null
    if [ $2 ]; then echo &quot;atrim: done&quot;; fi
}
</code></pre>
<pre class="bash"><code>function top-tail() {
    local top=&quot;$HOME/project/hpr-notes/template/intro-music-slick0-cc0.flac&quot;
    local tail=&quot;$HOME/project/hpr-notes/template/outro-mixed-slick0-manon_fallon-cc0.flac&quot;

    if [ $1 ]; then
        local in=&quot;$1&quot;
    else
        local in=&quot;-&quot;
    fi

    if [ $2 ]; then
        local out=&quot;$2&quot;
    else
        local out=&quot;-f nut -&quot;
    fi

    if [[ $# &gt; 2 ]]; then
        echo &quot;hpr-top-tail: requres 2 or fewer arguments&quot;
        return 1
    fi

    if [ $2 ]; then echo &quot;hpr-top-tail: Topping $in with $top and tailing with $tail...&quot;; fi
    ffmpeg -i &quot;$top&quot; -i $in -i &quot;$tail&quot; -vn -filter_complex &quot;
    [0][1]acrossfade=d=1:c1=tri:c2=tri[a01];
    [a01][2]acrossfade=d=1:c1=tri:c2=tri&quot; \
    $out \
        2&gt; /dev/null \
        #1&gt; /dev/null
    if [ $2 ]; then echo &quot;hpr-top-tail: done&quot;; fi
}
</code></pre>
<pre class="bash"><code>function anorm() {
    if [ $1 ]; then
        local in=&quot;$1&quot;
    else
        local in=&quot;-&quot;
    fi

    if [ $2 ]; then
        local out=&quot;$2&quot;
    else
        local out=&quot;-f nut -&quot;
    fi

    if [[ $# &gt; 2 ]]; then
        echo &quot;anorm: requires 2 or fewer arguments&quot;
        return 1
    fi

    if [ $2 ]; then echo &quot;anorm: normalizing audio $in and saving to $out...&quot;; fi
    ffmpeg -i $in $(ffmpeg-lh $in) $out \
        #2&gt; /dev/null \
        1&gt; /dev/null
    if [ $2 ]; then echo &quot;anorm: done&quot;; fi

}
</code></pre>
<h2 id="web-browsing-lynx">Web Browsing: <a href="#show-notes">lynx</a></h2>
<ul>
<li>Fast and easy text based web browsing</li>
<li>Can leverage Web 4.0 technologies like Gopher!!</li>
<li>Some sites break pretty bad...</li>
</ul>
<h2 id="email-mutt">Email: <a href="#show-notes">mutt*</a></h2>
<ul>
<li><p>I didn't really use email very much when I was living on the terminal and now, since I use protonmail, I don't really have an easy way not to use the webmail.</p></li>
<li><p>Trying to find a fix to this. Let me know your thoughts!</p></li>
<li><p>This is the mail client I've heard the most good things about that isn't built into a text editor I can't use</p></li>
</ul>
<hr />
<h1 id="show-notes">Show Notes</h1>
<h3 id="important-links">Important Links:</h3>
<ul>
<li><a href="https://github.com/tmux/tmux">tmux</a></li>
<li><a href="https://cmus.github.io">cmus</a></li>
<li><a href="https://fatchancelester.bandcamp.com/album/napalm-lounge">Napalm Lounge by Fat Chance Lester</a></li>
<li><a href="https://www.nongnu.org/fbi-improved">fim</a></li>
<li><a href="https://mpv.io">mpv</a></li>
<li><a href="https://www.youtube-dl.org">youtube-dl</a></li>
<li><a href="https://www.newsboat.org">newsboat/podboat</a></li>
<li><a href="https://neovim.io">neovim</a></li>
<li><a href="https://commonmark.org">CommonMark</a></li>
<li><a href="https://pandoc.org">pandoc</a></li>
<li><a href="https://ffmpeg.org">ffmpeg</a></li>
<li><a href="https://lynx.browser.org">lynx</a></li>
<li><a href="https://mutt.org">mutt</a></li>
</ul>
<h3 id="resources">Resources:</h3>
<ul>
<li><a href="https://gitlab.com/BlacKernel/hpr/-/raw/main/hpr3431/atrim.sh">atrim.sh</a></li>
<li><a href="https://gitlab.com/BlacKernel/hpr/-/raw/main/hpr3431/top-tail.sh">top-tail.sh</a></li>
<li><a href="https://gitlab.com/BlacKernel/hpr/-/raw/main/hpr3431/anorm.sh">anorm.sh</a></li>
</ul>
<hr />
<h5 id="contact-me">Contact Me</h5>
<ul>
<li><strong>Email</strong>: <a href="mailto:izzyleibowitz@pm.me">izzy leibowitz at pm dot me</a></li>
<li><strong>Mastodon</strong>: <a href="https://nixnet.social/BlacKernel">at blackernel at nixnet dot social</a></li>
</ul>
