From 294e9616f56d8d45d8b1625768cdeb9d90aba4b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Fri, 10 Nov 2023 21:00:45 +0300 Subject: [PATCH] Update hyprland borders with wal colors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ferit Yiğit BALABAN --- utility/change_hyprland_borders.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 utility/change_hyprland_borders.sh diff --git a/utility/change_hyprland_borders.sh b/utility/change_hyprland_borders.sh new file mode 100755 index 0000000..1e926e8 --- /dev/null +++ b/utility/change_hyprland_borders.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# Ferit Yiğit BALABAN, +# 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"