for _1 in {0..255};do for _2 in {0..255};do for _3 in {0..255};do echo -e "\033[48;2;${_1};${_2};${_3}m$_1:$_2:$_3"; read -t 0.01 -s;done;done;done
https://www.reddit.com/r/bash/comments/jhsw1x/all_rgb_colors_in_bash/
for _1 in {0..255};do for _2 in {0..255};do for _3 in {0..255};
do swaymsg bar bar-0 colors background '#${_1}${_2}${_3}';
read -t 0.01 -s;done;done;done
echo -e "\033[48;2;${_1};${_2};${_3}m$_1:$_2:$_3"
swaybar color transition
cat col.sh
for i in {0..255}; do
for j in {0..255}; do
for k in {0..255}; do
# Convert the decimal numbers to two-digit hexadecimal
hex_i=$(printf '%02x' $i)
hex_j=$(printf '%02x' $j)
hex_k=$(printf '%02x' $k)
# Set the background color of bar-0
swaymsg bar bar-0 colors background "#$hex_i$hex_j$hex_k"
echo "#$hex_i$hex_j$hex_k"
# Wait for a short period before changing the color again
read -t 0.001 -s
done
done
done
Comments
Post a Comment