From 0075645f0ee17f97c90d4f35b30322d46b00dcd7 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 10 May 2026 15:05:34 +0200 Subject: [PATCH] Set hyprlock corners too --- bin/omarchy-style-corners | 3 ++- bin/omarchy-style-corners-hyprlock | 35 ++++++++++++++++++++++++++++++ config/hypr/hyprlock.conf | 2 ++ install/config/toggles.sh | 1 + 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100755 bin/omarchy-style-corners-hyprlock 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" <