diff --git a/bin/omarchy-style-corners b/bin/omarchy-style-corners index a013489d..e3616bef 100755 --- a/bin/omarchy-style-corners +++ b/bin/omarchy-style-corners @@ -1,6 +1,6 @@ #!/bin/bash -# omarchy:summary=Set Hyprland, Mako, and Walker corners to sharp or round +# omarchy:summary=Set Hyprland, Hyprlock, Mako, and Walker corners to sharp or round # omarchy:args= # omarchy:examples=omarchy style corners round | omarchy style corners sharp @@ -10,5 +10,6 @@ if [[ $1 != "sharp" && $1 != "round" ]]; then fi omarchy-style-corners-hyprland "$1" +omarchy-style-corners-hyprlock "$1" omarchy-style-corners-mako "$1" omarchy-style-corners-walker "$1" diff --git a/bin/omarchy-style-corners-hyprlock b/bin/omarchy-style-corners-hyprlock new file mode 100755 index 00000000..bc0a9f8b --- /dev/null +++ b/bin/omarchy-style-corners-hyprlock @@ -0,0 +1,35 @@ +#!/bin/bash + +# omarchy:summary=Set or toggle rounded Hyprlock input field corners +# omarchy:args=[toggle|sharp|round] +# omarchy:examples=omarchy style corners hyprlock toggle | omarchy style corners hyprlock round | omarchy style corners hyprlock sharp + +TOGGLES_CONFIG="$HOME/.local/state/omarchy/toggles/hyprlock.conf" + +set_rounding() { + local radius="$1" + + mkdir -p "$(dirname "$TOGGLES_CONFIG")" + + cat >"$TOGGLES_CONFIG" <