Update hyprland borders with wal colors
Signed-off-by: Ferit Yiğit BALABAN <fybalaban@fybx.dev>
This commit is contained in:
parent
34859caf6f
commit
294e9616f5
12
utility/change_hyprland_borders.sh
Executable file
12
utility/change_hyprland_borders.sh
Executable 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"
|
Loading…
x
Reference in New Issue
Block a user