Useful stuff

Here I'm putting useful commands, dotfiles and links to remember.


Links

I love:


Commands

To convert a bunch of images from one format to another via ImageMagick

mogrify -format jpg *.heic

To convert some audio files from one sample/depth to another via sox

mkdir converted; for flac in *.[Ff][Ll][Aa][Cc]; do sox -S "$flac" -R -G -b 16 converted/"$flac" rate -v -L 44100 dither; done

To enable scientific notation in qalc

set exp # set exp 0 to disable

Dotfiles

Alacritty

Located at ~/.config/alacritty/alacritty.toml.

[env]
TERM = "xterm-256color"

[window]
opacity = 0.8
blur = true

[window.dimensions]
columns=100
lines=30

[font]
normal.family = "MesloLGS NF"
size = 12
Last command in Fish (!!)

Put in ~/.config/fish/config.fish.

function last_history_item; echo $history[1]; end
abbr -a !! --position anywhere --function last_history_item