- Table of contents
- General improvement
- Pipewire audio driver
- Find folders containing some file
- Safer bash scripts
- NuShell: Shell alternative great for parsing and pipelining commands. (not bash compatible)
- zsh + omzsh: Much improved bash
Bat: improved cat
with syntax highlight and more
fd: faster and friendlier alternative to find
fzf and skim: General purpose finder. Minimal differences, check comparison for the current state
navi: Easy to find cheat sheet. Configurable and dynamic on the parameters.
Better audio quality and codes.
Tested with:
Sony WH-1000X M3
Run the script and reboot.
#!/bin/bash
### disable pulseaudio
systemctl --user --now disable pulseaudio.{socket,service}
systemctl --user mask pulseaudio
sudo sed -i 's/.*autospawn.*/autospawn = no/g' /etc/pulse/client.conf
sudo update-rc.d pulseaudio-enable-autospawn disable
sudo mv -v /etc/xdg/autostart/pulseaudio.desktop{,.bak}
pulseaudio --kill
systemctl --user --now enable pipewire{,-pulse}.{socket,service} pipewire-media-session.service
###
# install pipewire
sudo add-apt-repository ppa:pipewire-debian/pipewire-upstream
sudo apt install pipewire gstreamer1.0-pipewire libspa-0.2-bluetooth libspa-0.2-jack
see also: finder alternatives
find . -type f -name 'pattern' | sed -r 's|/[^/]+$||' | sort | uniq
Reference: https://unix.stackexchange.com/a/111951
Settings for early exit on failure:
set -Eeuxo pipefail
Reference: https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/