Update hyprland borders with wal colors

Signed-off-by: Ferit Yiğit BALABAN <fybalaban@fybx.dev>
This commit is contained in:
Ferit Yiğit BALABAN 2023-11-10 21:00:45 +03:00
parent 34859caf6f
commit 294e9616f5
Signed by: fyb
GPG Key ID: E21FEB2C244CB7EB

View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Ferit Yiğit BALABAN, <fybalaban@fybx>
# desktop environment timer, 2023
#
hyprland_config="$HOME/.config/hypr/hyprland.conf"
wal_colors="$HOME/.cache/wal/colors"
line2=$(head -n 2 < "$wal_colors" | tail -n 1 | sed 's/#//')
line3=$(head -n 3 < "$wal_colors" | tail -n 1 | sed 's/#//')
sed -i "s/col.active_border =.*/col.active_border = rgb($line2) rgb($line3)/" "$hyprland_config"