23 lines
819 B
Bash
Executable File
23 lines
819 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Set Hyprland and Walker corners to sharp or round (the shell mirrors Hyprland)
|
|
# omarchy:args=<sharp|round>
|
|
# omarchy:examples=omarchy style corners round | omarchy style corners sharp
|
|
|
|
if [[ $1 != "sharp" && $1 != "round" ]]; then
|
|
echo "Usage: omarchy-style-corners <sharp|round>"
|
|
exit 1
|
|
fi
|
|
|
|
# The shell tracks Hyprland's `decoration:rounding` directly via
|
|
# Quickshell's qs.Commons.Style singleton; no separate quickshell-corners
|
|
# state file is written. The old omarchy-style-corners-quickshell shim is
|
|
# kept as a no-op so external callers don't error.
|
|
omarchy-style-corners-hyprland "$1"
|
|
omarchy-style-corners-walker "$1"
|
|
|
|
case $1 in
|
|
sharp) omarchy-notification-send "Sharp corners enabled" -g ;;
|
|
round) omarchy-notification-send "Round corners enabled" -g ;;
|
|
esac
|