Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Animated Rainbow Colored Border for Hyprland
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1476
Location: Earth

PostPosted: Sun Oct 15, 2023 10:16 pm    Post subject: Animated Rainbow Colored Border for Hyprland Reply with quote

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.

8)
_________________
" 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 "
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum