This folder contains a collection of useful shell scripts that automate certain tasks on my system fedora silverblue. Below are the descriptions of the scripts included and how to use them.
Note: This script is available as a GNOME shell extension. Please see the Grab Song for more details.
- This script extracts the currently playing song's Spotify URL and automatically downloads it using
spotdl.
- Ensure that you have
spotdlinstalled on your system. - The script grabs the Spotify URL of the currently playing song through the
dbus-sendcommand. - It will then download the song into your
~/Musicfolder (or another folder you specify in the script).
This script manages the warp-svc service for Cloudflare WARP, allowing you to start, stop, and check the WARP status.
- The script uses
systemctlto manage thewarp-svcservice andcurlto check if WARP is active or inactive by queryinghttps://www.cloudflare.com/cdn-cgi/trace/. - It supports synonyms for commands (
start,enable,onfor starting andstop,disable,offfor stopping).
This script allows you to set the opacity or transparency of alacritty terminal window.
- The script modifies the
~/.config/alacritty/alacritty.tomlto alter the opacity of the terminal window. - It updates the opacity by
0.01depending onifor increasing,dfor decreasing,fullfor setting opacity to1andresetto revert back to0.9.
-
Make the script executable:
chmod +x scriptname.sh
-
Run the script:
./scriptname.sh
-
Set an alias (Optional):
nano ~/.bashrc # For Bash # Or nano ~/.zshrc # For Zsh # Then add following to the file alias scripalias="bash /path/to/scripts/scriptname.sh"