~einar/scripts

Some Bash scripts I use on GNU/Linux
Fixed documentation strings
Added if-statement to check for WSL2 to use mpv instead of mpc+mpd
Changed the comment for radio.sh to avoid writing the same as in the readme.

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~einar/scripts
read/write
git@git.sr.ht:~einar/scripts

You can also use your local clone with git send-email.

#Scripts by Einar Mostad

#General overview

These are Bash-scripts I use mostly in combination with the Sway window manager on GNU/Linux. I do not use a bar or panel since it wastes space. Therefore, some of these scipts implement functionality that is commonly found in bars like a battery indicator or a script to turn bluetooth on. Other scripts are nice to have functionality like a radio player, an album-based music player and a way to get the latest TV news or satire program. I bind my scripts and other functionality I use often to keyboard shortcuts in Sway and often bind something to stop what the scripts does to the same keyboard shortcut plus shift.

The file for each script starts with a comment that explains everything you need to know about its use and dependencies which is why I do not go into further deails here. Since Sway is a Wayland-native window manager, I do not use X11-native dependencies. I used to use bemenu in many of my scripts as a Wayland-native dmenu replacement. However, I have opted to use fzf instead lately since this makes it possible to use the same scripts within Sway (launched with "exec foot scriptname.sh" by a keyboard shortcut to have a foot terminal window for fzf) as on the tty, in WSL2, in Emacs' ANSI term whether in a GUI or not or in X11-based environments' terminals. Since the lowest common denominator is the tty, it is nice to make scripts runnable there if the nature of their functionality allows it.

#Licensing

I share my scripts under a free software license so anyone can use the scripts, read them, change them or redistribute them with their changes as they wish. To make certain none of those freedoms can ever be taken away in the future, I have chosen to license them under the terms of the GNU General Public License version 3 (gpl-3.0). As a GNU/Linux user, I appreciate the core values of free software and free culture and want to share my own output (even simple scripts like these) in the same way as countless others have shared their work with me and other users.