8000 GitHub - marcwallach/welcomeBach: Receive a list of recordings for a random piece by Bach on startup
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

marcwallach/welcomeBach

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

welcomeBach

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.

Installation

  1. Clone the repository:
git clone https://github.com/marcwallach/welcomeBach.git
  1. Check if the welcomeBach script is executable, if not, run:
chmod +x welcomeBach
  1. Copy or move this directory to .local/bin, or somewhere in your $PATH

  2. 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 after Exec=.

      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.

Contributing

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!

License

GPLv3

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.

About

Receive a list of recordings for a random piece by Bach on startup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 82.5%
  • Awk 17.5%
0