CooSee Veteran
Joined: 20 Nov 2004 Posts: 1468 Location: Earth
|
Posted: Sun Oct 15, 2023 10:16 pm Post subject: Animated Rainbow Colored Border for Hyprland |
|
|
hello,
modified ~/.config/hypr/Settings.conf or all entries in hyprland.conf <<< if you use 1 file config - except for scripts:
Code: | bezier = wind, 0.05, 0.9, 0.1, 1.05
bezier = winIn, 0.1, 1.1, 0.1, 1.1
bezier = winOut, 0.3, -0.3, 0, 1
bezier = liner, 1, 1, 1, 1
bezier = linear, 0.0, 0.0, 1.0, 1.0
animations {
enabled = yes
animation = windowsIn, 1, 6, winIn, slide
animation = windowsOut, 1, 5, winOut, slide
animation = windowsMove, 1, 5, wind, slide
animation = border, 1, 10, default
animation = borderangle, 1, 100, linear, loop
animation = fade, 1, 10, default
animation = workspaces, 1, 5, wind
animation = windows, 1, 6, wind, slide
} |
content of *.sh script ~/.config/hypr/scripts/RainbowBorders.sh:
Code: | #!/bin/bash
function random_hex() {
random_hex=("0xff$(openssl rand -hex 3)")
echo $random_hex
}
hyprctl keyword general:col.active_border $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) 270deg
hyprctl keyword general:col.inactive_border $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) 270deg |
~/.config/hypr/configs/Execs.conf:
Code: | exec-once = $scriptsDir/RainbowBorders.sh |
using border_size = 2
this looks great with Dark Themes https://0x0.st/s/TGndw_0dkJ0nTvMmg8Ikfg/HyJp.png
edit:
forgot to mention that i found it here https://www.reddit.com/r/hyprland/comments/13h6wb9/problem_with_colactive_border/ <<< thanks to this user.
_________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|