From 0b341f71bff5c876bf6eeaaa617937bf596da8e6 Mon Sep 17 00:00:00 2001 From: rishav <157917453+rishav12s@users.noreply.github.com> Date: Thu, 28 Nov 2024 20:33:20 +0530 Subject: [PATCH] update rounding corners in wbarstylegen.sh --- Configs/.local/share/bin/wbarstylegen.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Configs/.local/share/bin/wbarstylegen.sh b/Configs/.local/share/bin/wbarstylegen.sh index 9f92dbae5b..fc17a0780b 100755 --- a/Configs/.local/share/bin/wbarstylegen.sh +++ b/Configs/.local/share/bin/wbarstylegen.sh @@ -108,11 +108,10 @@ esac export modules_ls=$(grep -m 1 '".*.": {' --exclude="$modules_dir/footer.jsonc" $modules_dir/*.jsonc | cut -d '"' -f 2 | awk -F '/' '{ if($1=="custom") print "#custom-"$NF"," ; else print "#"$NF","}') envsubst < $in_file > $out_file - + # override rounded couners -hypr_border=`awk -F '=' '{if($1~" rounding ") print $2}' $src_file | sed 's/ //g'` -if [ "$hypr_border" == "0" ] ; then - sed -i "/border-radius: /c\ border-radius: 0px;" $out_file +hypr_border=${hypr_border:-$(hyprctl -j getoption decoration:rounding | jq '.int')} +if [ "$hypr_border" == "0" ] || [ -z "$hypr_border" ] ; then + sed -i "/border-radius: /c\ border-radius: 0px;" "$out_file" fi -