Encode Array ?

encode() {

    encarr=(ffmpeg)
    encarr+=(-i "$file")
    encarr+=(-vf yadif=0) # deinterlace
    encarr+=(-pix_fmt yuv420p)
    encarr+=(-c:v libx264)
    encarr+=(-preset slow)
    encarr+=(-tune film)
    encarr+=(-crf 18)
    encarr+=(-threads 0)
    encarr+=(-an)
    #encarr+=(-aspect 16:9)
    #encarr+=(-level 4.1)
    encarr+=("$tmpdir/$base.video.mp4")
    encarr+=(-movflags +faststart -loglevel panic -stats)

    echo "${encarr[@]}"

    when=$(date +%Y%m%d%H%M%S)
    FFREPORT=file="$log/$baseext.$when.$RANDOM.$me.log":level=40 \
    "${encarr[@]}" </dev/null

}

Drawille

Drawing in terminal with Unicode Braille characters

drawille2-fs8.png-Sn2p9yfLXABXzoM-md
https://github.com/asciimoo/drawille

Aerial

archlinux.org/xscreensaver-aerial-videos-1080/
forums.bunsenlabs.org/pid=96145#p96145

# get playlist
wget https://brontosaurusrex.github.io/pl/aerial.m3u
# filter playlist
grep -v _4K_ aerial.m3u > aerial2k.m3u
# play
mpv -fs aerial2k.m3u

Mute machine at night

https://unix.stackexchange.com/questions/170950/how-can-i-automatically-silence-my-computer-at-night

crontab -e

and add

# Mute sound at night from 1:00 to 6:59
0 1 * * * amixer set Master mute
59 6 * * * amixer set Master unmute

Swap Esc and CapsLock

https://forums.bunsenlabs.org/viewtopic.php?pid=95869

setxkbmap -option caps:swapescape

SpeedCrunch calc (qt)

Possible pycalc replacement (in Buster repos)
speedcrunch.png-LXQZq4spblPqgDX-md
Custom color schemes.

~/.local/share/SpeedCrunch/color-scheme/bunsenBeam.json

{
    "cursor": "#74998B",
    "number": "#74998B",
    "parens": "#AD7FA8",
    "result": "#689FCF",
    "comment": "#894B7A",
    "matched": "#64507B",
    "function": "#EF2928",
    "operator": "#C4A000",
    "variable": "#4A9A07",
    "scrollbar": "#575E68",
    "separator": "#AD7FA8",
    "background": "#333D4D",
    "editorbackground": "#333D4D"
}

Cons: Ugly icon.

Alias CPU

New one

 ps -eo fname --sort pcpu | uniq | tail | tac

returns

Xorg
chrome
compton
chrome
geany
tac
tail
uniq
ps
gvfsd-tr

Or slightly more complicated (script)

#!/bin/bash

# cpu

ps -eo fname --sort pcpu | uniq | tail -n 130 | tac | grep -Ev "cat|tac|tail|uniq|ps|grep|head|awk|bash|zsh|cpu|urxvt|sh|watch|Xorg|jfs*|chrome-s|dunst|xfs*|tmux*|gvfs*|printVol" | awk '!seen[$0]++' | head

# grep holds shitlist
# awk removes duplicates without re-sorting

returns

chrome
geany
Xorg
jekyll
urxvt
Viber
kworker/
nacl_hel
chrome-s
jfsSync
about / github / jekyll