hypridle: one daemon, not two; battery dropdown pins to bottom
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
2f50071695
commit
e9ab223891
2 changed files with 11 additions and 1 deletions
|
|
@ -337,7 +337,10 @@ in
|
|||
-- keeps its history/cwd between peeks.
|
||||
hl.exec_cmd(scratchpads["dev.fred.scratchpad"])
|
||||
-- swayosd removed; volume/brightness OSD handled by quickshell
|
||||
${lib.optionalString isMacbook ''hl.exec_cmd("hypridle")''}
|
||||
-- No hypridle here: services.hypridle already runs it as a user
|
||||
-- unit off hyprland-session.target. Launching it a second time
|
||||
-- left two daemons racing, and the shell's caffeine toggle
|
||||
-- (systemctl --user stop hypridle) only silenced one of them.
|
||||
end)
|
||||
|
||||
-- Animation curve and definitions
|
||||
|
|
|
|||
|
|
@ -4944,8 +4944,14 @@ in
|
|||
// when it merely centres on it — pin it to the frame, the
|
||||
// way the bottom cluster's menus already land on yMax.
|
||||
property bool alignTop: false
|
||||
// Mirror for the bottom cluster: a tall panel opened from a
|
||||
// low widget reads better fused to the bottom frame than
|
||||
// floating a few px off it. max(yMin, ...) keeps a panel
|
||||
// taller than the screen pinned to the top instead.
|
||||
property bool alignBottom: false
|
||||
x: Theme.barWidth
|
||||
y: alignTop ? Math.round(yMin)
|
||||
: alignBottom ? Math.round(Math.max(yMin, yMax))
|
||||
: Math.round(Math.max(yMin, Math.min(yMax, dropdownY - height / 2)))
|
||||
width: fullWidth + 4
|
||||
// +24, not +16: the shader insets the panel 8px top and
|
||||
|
|
@ -5965,6 +5971,7 @@ in
|
|||
id: batteryDropdown
|
||||
fullWidth: batteryDropdownCol.width + 2 * Theme.panelGap
|
||||
fullHeight: batteryDropdownCol.height + 2 * Theme.panelGap
|
||||
alignBottom: true
|
||||
|
||||
Column {
|
||||
id: batteryDropdownCol
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue