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
spotdl
installed on your system. - The script grabs the Spotify URL of the currently playing song through the
dbus-send
command. - It will then download the song into your
~/Music
folder (or another folder you specify in the script).
This script changes the wallpaper to a random image from a predefined set of images in a folder.
- This script assumes you have a folder of images you'd like to use as wallpapers. You can specify the folder in the script.
- It randomly selects an image from the folder and sets it as the desktop wallpaper.
This script manages the warp-svc
service for Cloudflare WARP, allowing you to start, stop, and check the WARP status.
- The script uses
systemctl
to manage thewarp-svc
service andcurl
to check if WARP is active or inactive by queryinghttps://www.cloudflare.com/cdn-cgi/trace/
. - It supports synonyms for commands (
start
,enable
,on
for starting andstop
,disable
,off
for stopping).
This script allows you to set the opacity or transparency of alacritty terminal window.
- The script modifies the
~/.config/alacritty/alacritty.toml
to alter the opacity of the terminal window. - It updates the opacity by
0.01
depending oni
for increasing,d
for decreasing,full
for setting opacity to1
andreset
to 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"