irongit
hygoland/UserScripts/RainbowBorders.sh
14 lines686 BBourne Again Shell (bash)
1#!/bin/bash
2# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
3# for rainbow borders animation
4
5function random_hex() {
6 random_hex=("0xff$(openssl rand -hex 3)")
7 echo $random_hex
8}
9
10# rainbow colors only for active window
11hyprctl 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
12
13# rainbow colors for inactive window (uncomment to take effect)
14#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