Receive a list of Youtube links to recordings of a randomly selected piece by Bach.
The script uses curl output parsed through an AWK filter to retrieve the links.
One can choose a link either through a simple bash prompt (default), using fzf or dmenu.
- Clone the repository:
git clone https://github.com/marcwallach/welcomeBach.git
- Check if the welcomeBach script is executable, if not, run:
chmod +x welcomeBach
-
Copy or move this directory to
.local/bin
, or somewhere in your$PATH
-
Finally, make sure to add a line to your startup scripts to run welcomeBach when starting a graphical session. Unless you're using
dmenu
to select a link, you'll need to run it from a terminal emulator.In the following examples, the syntax is for executing the script in st using the Z shell. Make sure to change it to your terminal emulator of use and preferred shell.
-
If you're using a display manager like lightdm or gdm:
Edit the
.desktop
file for your current desktop environment/window manager session in the directory your DM reads it from, appending the following afterExec=
.st -e zsh -c 'welcomeBach && exec zsh'
-
If you're using i3, you may append the following it to your config file:
exec --no-startup-id st -e zsh -c 'welcomeBach && exec zsh'
-
You could also add it to your shell's rc/profile files.
-
If you're a Chad who uses xinitrc, just add
welcomeBach
to it, or to whatever your startup script is.
-
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Feel free to fork it!
This script is a Bash adaptation of the original Python welcomeBach, by Fefo (go check out his work), which in turn is inspired by Koan.