aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/RainbowBorders.sh
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2026-01-16 22:22:14 -0500
committerDon Williams <don.e.williams@gmail.com>2026-01-16 22:23:22 -0500
commit3363d48f00d92bbefe1a65c5331a5671ef88ae6a (patch)
tree431b300f6d6ecce822f59054ac9ac6236e7b1c40 /config/hypr/UserScripts/RainbowBorders.sh
parentfedec77164a973edfb03e6a8d60382dc62f30f1d (diff)
Disabled RainbowBorders by default use quick settings to enable
The new mode select menu for RainbowBorders makes the prompt at install redundant. Especially when upgrading On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md renamed: config/hypr/UserScripts/RainbowBorders.sh -> config/hypr/UserScripts/RainbowBorders.bak.sh modified: config/hypr/configs/Startup_Apps.conf modified: copy.sh modified: scripts/lib_prompts.sh
Diffstat (limited to 'config/hypr/UserScripts/RainbowBorders.sh')
-rwxr-xr-xconfig/hypr/UserScripts/RainbowBorders.sh89
1 files changed, 0 insertions, 89 deletions
diff --git a/config/hypr/UserScripts/RainbowBorders.sh b/config/hypr/UserScripts/RainbowBorders.sh
deleted file mode 100755
index 67269b8a..00000000
--- a/config/hypr/UserScripts/RainbowBorders.sh
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/usr/bin/env bash
-# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
-# Smooth border cycling effect using Wallust palette or full rainbow
-
-# Possible values: "wallust_random", "rainbow", "gradient_flow"
-EFFECT_TYPE="gradient_flow"
-
-WALLUST_COLORS_SOURCE="$HOME/.config/hypr/wallust/wallust-hyprland.conf"
-
-WALLUST_COLORS=()
-
-# ---------- LOAD WALLUST COLORS ----------
-if [[ "$EFFECT_TYPE" == "wallust_random" || "$EFFECT_TYPE" == "gradient_flow" ]]; then
- # Accept either hex (0xffRRGGBB) or rgb(r,g,b) and normalize to 0xffRRGGBB
- mapfile -t WALLUST_COLORS < <(
- grep -E '^\$color[0-9]+' "$WALLUST_COLORS_SOURCE" | awk '
- function hex2(s){ return (length(s)==6 ? "0xff"s : ""); }
- function rgb2(r,g,b){ return sprintf("0xff%02x%02x%02x", r, g, b); }
- {
- if (match($0, /0x([0-9a-fA-F]{8})/, m)) { print "0x" m[1]; next }
- if (match($0, /#([0-9a-fA-F]{6})/, m)) { print hex2(m[1]); next }
- if (match($0, /rgb\(([0-9]+),[ ]*([0-9]+),[ ]*([0-9]+)\)/, m)) {
- print rgb2(m[1], m[2], m[3]); next
- }
- }'
- )
-
- if (( ${#WALLUST_COLORS[@]} == 0 )); then
- # If wallust colors can't be loaded, fall back to random_hex
- EFFECT_TYPE="rainbow"
- fi
-fi
-
-# ---------- RANDOM WALLUST COLORS ----------
-function wallust_random() {
- echo "${WALLUST_COLORS[RANDOM % ${#WALLUST_COLORS[@]}]}"
-}
-
-# ---------- RAINBOW COLORS ----------
-function random_hex() {
- echo "0xff$(openssl rand -hex 3)"
-}
-
-# ---------- FLOW MODE ----------
-BASE_COLOR="${WALLUST_COLORS[10]}"
-GRAD1_COLOR="${WALLUST_COLORS[14]}"
-GRAD2_COLOR="${WALLUST_COLORS[13]}"
-GLOW_COLOR="${WALLUST_COLORS[15]}"
-
-MAX_POS=10
-GLOW_POS=0
-
-function gradient_flow_color() {
- local pos=$1
- local d=$(( pos - GLOW_POS ))
-
- # wrap distance (-9..9)
- if (( d > MAX_POS/2 )); then d=$((d - MAX_POS)); fi
- if (( d < -MAX_POS/2 )); then d=$((d + MAX_POS)); fi
-
- case "${d#-}" in
- 0) echo "$GLOW_COLOR" ;;
- 1) echo "$GRAD1_COLOR" ;;
- 2) echo "$GRAD2_COLOR" ;;
- *) echo "$BASE_COLOR" ;;
- esac
-
- if (( pos == MAX_POS - 1 )); then
- GLOW_POS=$(( (GLOW_POS + 1) % MAX_POS ))
- fi
-}
-
-# ---------- Main function ----------
-
-function get_color() {
- if [[ "$EFFECT_TYPE" == "wallust_random" && ${#WALLUST_COLORS[@]} -gt 0 ]]; then
- wallust_random
- elif [[ "$EFFECT_TYPE" == "gradient_flow" && ${#WALLUST_COLORS[@]} -ge 16 ]]; then
- gradient_flow_color "$1"
- else
- random_hex
- fi
-}
-
-# border effect for ACTIVE window
-hyprctl keyword general:col.active_border $(get_color 0) $(get_color 1) $(get_color 2) $(get_color 3) $(get_color 4) $(get_color 5) $(get_color 6) $(get_color 7) $(get_color 8) $(get_color 9) 270deg
-
-# border effect for INACTIVE windows
-#hyprctl keyword general:col.inactive_border $(get_color 0) $(get_color 1) $(get_color 2) $(get_color 3) $(get_color 4) $(get_color 5) $(get_color 6) $(get_color 7) $(get_color 8) $(get_color 9) 270deg \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage