Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Configs/.local/share/bin/wbarstylegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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