Not for normies
| 1 | #!/bin/bash |
| 2 | # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## |
| 3 | # Wallust Colors for current wallpaper |
| 4 | |
| 5 | # Define the path to the swww cache directory |
| 6 | cache_dir="/.cache/swww/" |
| 7 | |
| 8 | # Get a list of monitor outputs |
| 9 | monitor_outputs=() |
| 10 | |
| 11 | # Initialize a flag to determine if the ln command was executed |
| 12 | ln_success=false |
| 13 | |
| 14 | # Get current focused monitor |
| 15 | current_monitor= |
| 16 | |
| 17 | # Construct the full path to the cache file |
| 18 | cache_file="" |
| 19 | |
| 20 | # Check if the cache file exists for the current monitor output |
| 21 | if [; then |
| 22 | # Get the wallpaper path from the cache file |
| 23 | wallpaper_path= |
| 24 | |
| 25 | # symlink the wallpaper to the location Rofi can access |
| 26 | if ; then |
| 27 | ln_success=true # Set the flag to true upon successful execution |
| 28 | fi |
| 29 | # copy the wallpaper for wallpaper effects |
| 30 | |
| 31 | fi |
| 32 | |
| 33 | # Check the flag before executing further commands |
| 34 | if [; then |
| 35 | # execute wallust |
| 36 | |
| 37 | # execute wallust skipping tty and terminal changes |
| 38 | & |
| 39 | fi |