Script for downloading a music playlist from YouTube. You will need yt-dlp
installed
on your computer.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
network_name="wifi network name here" | |
notify-send "Autorecon started" | |
while true; do | |
if ! ping -c 2 google.com; then | |
notify-send "Network not networking, reconnect" | |
nmcli con up "$network_name" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Change Wallpaper Service | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/bash -c 'DISPLAY=:0 XAUTHORITY=/home/YOUR_USERNAME/.Xauthority /usr/bin/feh --bg-fill --randomize "/WALLPAPER_FOLDER/$(ls /WALLPAPER_FOLDER/ | shuf -n 1)"' |