Shared March 17, 2020
I want to write a shell script that can deal with either one of the two audio systems (ALSA and Pulseaudio) on Linux, so people who use my dotfiles don't need to revise all my dotfiles to edit some audio shortcuts in dwm or i3.
One additional optimization that I should've mentioned is that at the end, we can actually get rid of the case statement since our functions are coincidentally equal to the value of "$1". That would be okay in this case, but I didn't do it here because I'm thinking about adding more. Then again, we'll see how the script evolves.
WEBSITE: https://lukesmith.xyz 🌐❓🔎
DONATE NOW: https://lukesmith.xyz/donate 💰😎👌💯
Never say "If" writing a Bash script! (Exit codes & logical operators)
Terminal vs. Bash vs. Command line vs. Prompt
Wallpapers Easily and "Hackably" on Linux
"How did you first get into Linux?"
Minimalism vs. Memes on the Command Line
Only Linux Brainlets CAT into GREP!!!
Suckless's dwm: So easy even a caveman could do it!
Don't Be a Bash BRAINLET! (Shell is all about streams!)
Beginner's Guide to the Bash Terminal
SCRIPTING: Virgin USB daemons vs. the Chad 20 line Bash Script
Editing Videos without a Video-Editor. ...wait, what?
sxiv: The Suckless Image Viewer for GNU/Linux
Unix Chad JUST WON'T STOP Piping!
The Simple Terminal: st from Suckless, and how I extend it
Minimalist Software Prevents THIS...
Linux Terminal: Get Memory, Temp, CPU & Make Them Useful!
Spring Cleaning your Home! (~/, That is...)