aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/PywalSwww.sh
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2024-05-10 02:03:31 +0900
committerJaKooLit <jimmielovejay@gmail.com>2024-05-10 02:03:31 +0900
commitd7ff1c1dea16619a38f35536a5c00685d848abce (patch)
treef5c9ea6aeca1fb713d31a1d2d3069c5b9830ddc0 /config/hypr/scripts/PywalSwww.sh
parenta3994cc8edd41fa42dfe1a6f22754dcdcc3d1e51 (diff)
Initial Push - Moving to Wallust from Pywal
Diffstat (limited to 'config/hypr/scripts/PywalSwww.sh')
-rwxr-xr-xconfig/hypr/scripts/PywalSwww.sh38
1 files changed, 0 insertions, 38 deletions
diff --git a/config/hypr/scripts/PywalSwww.sh b/config/hypr/scripts/PywalSwww.sh
deleted file mode 100755
index 9f7b15b5..00000000
--- a/config/hypr/scripts/PywalSwww.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
-# Pywal Colors for current wallpaper
-
-# Define the path to the swww cache directory
-cache_dir="$HOME/.cache/swww/"
-
-# Get a list of monitor outputs
-monitor_outputs=($(ls "$cache_dir"))
-
-# Initialize a flag to determine if the ln command was executed
-ln_success=false
-
-# Get current focused monitor
-current_monitor=$(hyprctl monitors | awk '/^Monitor/{name=$2} /focused: yes/{print name}')
-echo $current_monitor
-# Construct the full path to the cache file
-cache_file="$cache_dir$current_monitor"
-echo $cache_file
-# Check if the cache file exists for the current monitor output
-if [ -f "$cache_file" ]; then
- # Get the wallpaper path from the cache file
- wallpaper_path=$(cat "$cache_file")
- echo $wallpaper_path
- # Copy the wallpaper to the location Rofi can access
- if ln -sf "$wallpaper_path" "$HOME/.config/rofi/.current_wallpaper"; then
- ln_success=true # Set the flag to true upon successful execution
- fi
-fi
-
-# Check the flag before executing further commands
-if [ "$ln_success" = true ]; then
- # execute pywal
- # wal -i "$wallpaper_path"
- echo 'about to execute wal'
- # execute pywal skipping tty and terminal changes
- wal -i "$wallpaper_path" -s -t -n -e &
-fi
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage