* Pick window transparency from Appearance > Window Transparency Transparent, the default, keeps today's windows. Opaque turns the windows Omarchy makes transparent solid. Glassy is the frosted glass Starship (#14726): its blur behind every see-through window and shell surface, and a see-through, blurred background in the theme's terminal files, since foot turns compositor blur down and a Hyprland opacity rule fades text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Leave window transparency to Appearance when animations are off Turning animations off no longer makes windows opaque. VM installs start with opaque windows instead, and a migration keeps them opaque for anyone who already has animations off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Add a Glassy bar background, under Menu Bar > Bar Background Menu Bar > Bar Background picks Opaque Bar, Glassy Bar or Clear Bar, and Indicators becomes Bar Indicators to match. Glassy keeps the theme background faintly and Hyprland blurs what is behind it, with the same blur as Glassy windows. omarchy bar background opaque|glassy|none|cycle sets it and prints it when given nothing. omarchy bar transparent true|false|toggle stays for compatibility, as none and opaque. Double-clicking the bar cycles through the three backgrounds the same way, from clear to glassy to opaque. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Stop when a saved corner choice can't be removed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Make btop follow glassy windows --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
42 lines
1.3 KiB
Bash
Executable File
42 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Show or set window corners: theme, sharp, or rounded
|
|
# omarchy:args=[theme|sharp|rounded]
|
|
# omarchy:examples=omarchy hyprland corners | omarchy hyprland corners rounded
|
|
|
|
TOGGLES_DIR="${XDG_STATE_HOME:-$HOME/.local/state}/omarchy/toggles/hypr"
|
|
|
|
# Sharp and rounded are toggle files loaded after every theme, so they override
|
|
# the corners of whichever theme is current. Theme removes both.
|
|
if (( $# == 0 )); then
|
|
if [[ -f $TOGGLES_DIR/corners-sharp.lua ]]; then
|
|
echo "sharp"
|
|
elif [[ -f $TOGGLES_DIR/corners-rounded.lua ]]; then
|
|
echo "rounded"
|
|
else
|
|
echo "theme"
|
|
fi
|
|
exit 0
|
|
fi
|
|
|
|
case $1 in
|
|
theme) LABEL="Corners follow the theme" ;;
|
|
sharp) LABEL="Sharp corners for all themes" ;;
|
|
rounded) LABEL="Rounded corners for all themes" ;;
|
|
*)
|
|
echo "Usage: omarchy-hyprland-corners [theme|sharp|rounded]" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# Save the new choice before dropping the old one, so a failed save keeps it.
|
|
if [[ $1 != "theme" ]]; then
|
|
mkdir -p "$TOGGLES_DIR" && cp "$OMARCHY_PATH/default/hypr/toggles/corners-$1.lua" "$TOGGLES_DIR/corners-$1.lua" || exit 1
|
|
fi
|
|
for mode in sharp rounded; do
|
|
[[ $mode == "$1" ]] || rm -f "$TOGGLES_DIR/corners-$mode.lua" || exit 1
|
|
done
|
|
|
|
hyprctl reload >/dev/null || exit 1
|
|
omarchy-notification-send -g "$LABEL"
|