Add toggling of hyprland window rounded corners
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# omarchy:summary=Set or toggle shape of Hyprland window corners
|
||||||
|
# omarchy:args=[toggle|sharp|round]
|
||||||
|
# omarchy:examples=omarchy hyprland window corners toggle | omarchy hyprland window corners round | omarchy hyprland window corners sharp
|
||||||
|
|
||||||
|
case "${1:-toggle}" in
|
||||||
|
round) set -- on ;;
|
||||||
|
sharp) set -- off ;;
|
||||||
|
toggle) ;;
|
||||||
|
*)
|
||||||
|
echo "Usage: omarchy-hyprland-window-corners [toggle|sharp|round]"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
omarchy-hyprland-toggle rounded-corners "$1"
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
decoration {
|
||||||
|
rounding = 6
|
||||||
|
rounding_power = 3
|
||||||
|
}
|
||||||
@@ -10,15 +10,3 @@ group {
|
|||||||
col.border_active = $activeBorderColor
|
col.border_active = $activeBorderColor
|
||||||
col.border_inactive = $inactiveBorderColor
|
col.border_inactive = $inactiveBorderColor
|
||||||
}
|
}
|
||||||
|
|
||||||
decoration {
|
|
||||||
rounding = 3
|
|
||||||
rounding_power = 3
|
|
||||||
|
|
||||||
shadow {
|
|
||||||
enabled = yes
|
|
||||||
render_power = 3
|
|
||||||
range = 16
|
|
||||||
color = rgba(00000052)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
# This file is not a full hyprland configuration.
|
|
||||||
# It is intended to be included in your main hyprland.conf.
|
|
||||||
|
|
||||||
$activeBorderColor = rgba(798186ee) rgba(caccccee)
|
$activeBorderColor = rgba(798186ee) rgba(caccccee)
|
||||||
$inactiveBorderColor = rgb(1e1e1e)
|
$inactiveBorderColor = rgb(1e1e1e)
|
||||||
|
|
||||||
@@ -13,14 +10,3 @@ group {
|
|||||||
col.border_active = $activeBorderColor
|
col.border_active = $activeBorderColor
|
||||||
col.border_inactive = $inactiveBorderColor
|
col.border_inactive = $inactiveBorderColor
|
||||||
}
|
}
|
||||||
|
|
||||||
decoration {
|
|
||||||
rounding = 6
|
|
||||||
rounding_power = 3
|
|
||||||
|
|
||||||
shadow {
|
|
||||||
enabled = yes
|
|
||||||
range = 16
|
|
||||||
color = rgba(00000052)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user