Set hyprlock corners too
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/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=<sharp|round>
|
# omarchy:args=<sharp|round>
|
||||||
# omarchy:examples=omarchy style corners round | omarchy style corners sharp
|
# omarchy:examples=omarchy style corners round | omarchy style corners sharp
|
||||||
|
|
||||||
@@ -10,5 +10,6 @@ if [[ $1 != "sharp" && $1 != "round" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
omarchy-style-corners-hyprland "$1"
|
omarchy-style-corners-hyprland "$1"
|
||||||
|
omarchy-style-corners-hyprlock "$1"
|
||||||
omarchy-style-corners-mako "$1"
|
omarchy-style-corners-mako "$1"
|
||||||
omarchy-style-corners-walker "$1"
|
omarchy-style-corners-walker "$1"
|
||||||
|
|||||||
Executable
+35
@@ -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" <<EOF
|
||||||
|
input-field {
|
||||||
|
rounding = $radius
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
case "${1:-toggle}" in
|
||||||
|
round) set_rounding 6 ;;
|
||||||
|
sharp) set_rounding 0 ;;
|
||||||
|
toggle)
|
||||||
|
if [[ -f $TOGGLES_CONFIG ]] && grep -q '^ rounding = 6$' "$TOGGLES_CONFIG"; then
|
||||||
|
set_rounding 0
|
||||||
|
else
|
||||||
|
set_rounding 6
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: omarchy-style-corners-hyprlock [toggle|sharp|round]"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
@@ -41,3 +41,5 @@ input-field {
|
|||||||
auth {
|
auth {
|
||||||
fingerprint:enabled = false
|
fingerprint:enabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
source = ~/.local/state/omarchy/toggles/hyprlock.conf
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
# Make sure toggles are available
|
# Make sure toggles are available
|
||||||
mkdir -p ~/.local/state/omarchy/toggles
|
mkdir -p ~/.local/state/omarchy/toggles
|
||||||
|
touch ~/.local/state/omarchy/toggles/hyprlock.conf
|
||||||
touch ~/.local/state/omarchy/toggles/mako.ini
|
touch ~/.local/state/omarchy/toggles/mako.ini
|
||||||
touch ~/.local/state/omarchy/toggles/walker.css
|
touch ~/.local/state/omarchy/toggles/walker.css
|
||||||
|
|||||||
Reference in New Issue
Block a user