Compare commits

...

2 Commits

Author SHA1 Message Date
Amir Alexander Abdelbaki 4da704cb5d feat(hyprdrive): default wallpaper -> ESA/Hubble "Rings of Relativity"
Swap the module's default background.jpg for ESA/Hubble Picture of the Week
potw2050a, "Rings of Relativity" (GAL-CLUS-022058s, one of the most complete
Einstein rings observed). Update CREDITS.md and the hyprdrive.sh install-module
comments to match. Credit: ESA/Hubble & NASA, S. Jha; Ack. L. Shatz — CC BY 4.0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-21 20:49:04 +02:00
Amir Alexander Abdelbaki f040cac729 feat(hypr): float dialog-like windows at cursor, minimum size
Add a `dialog-float` window rule to both hyprdrive and hyprlua: float any
window whose title looks like a dialog (Rename/Save/Open/Opening/Confirm/
Delete/Move/Copy/Replace/Properties/Preferences — covers file-manager rename
dialogs and Firefox "Opening <file>" download prompts), centred on the cursor
at its natural (minimum) size. Catches dialogs that carry no xdg/X11 dialog
hint and would otherwise tile; Hyprland still auto-floats the ones that do.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-21 20:49:04 +02:00
5 changed files with 37 additions and 7 deletions

View File

@ -103,6 +103,20 @@ hl.window_rule({
move = "(monitor_w/2 - window_w/2) (monitor_h/2 - window_h/2)",
})
-- dialogs — float any dialog-like window at its natural (minimum) size, centred on
-- the cursor: renaming dialogs, generic Save/Open/Confirm/Delete/Move/Copy/Replace/
-- Properties/Preferences dialogs, and Firefox "Opening <file>" download prompts.
-- Hyprland already auto-floats real in-process xdg/X11 dialogs; this catches the ones
-- that tile because they carry no dialog hint, matched heuristically by title. No
-- `size`, so the natural (minimum) size is kept and the cursor-centre offsets use the
-- real window_w/h (see the filepicker note above re: move/size ordering).
hl.window_rule({
name = "dialog-float",
match = { title = "^(Rename|Save|Opening |Open |Confirm|Delete|Move|Copy|Replace|Properties|Preferences).*" },
float = true,
move = "(cursor_x-(window_w/2)) (cursor_y-(window_h/2))",
})
-- spotify floating
hl.window_rule({
name = "spotify-float",

View File

@ -1,13 +1,15 @@
# Default wallpaper credit
`background.jpg` — "New view of the Pillars of Creation — visible" (Eagle Nebula,
M16), a 2014 Hubble Space Telescope re-observation.
`background.jpg` — "Rings of Relativity" (GAL-CLUS-022058s), a Hubble Space
Telescope image of one of the most complete Einstein rings ever observed: light
from a distant background galaxy bent into a near-perfect ring by the gravity of
an intervening galaxy cluster (gravitational lensing).
- Source: https://esahubble.org/images/heic1501a/
- Credit: NASA, ESA/Hubble and the Hubble Heritage Team
- Source: https://esahubble.org/images/potw2050a/
- Credit: ESA/Hubble & NASA, S. Jha; Acknowledgement: L. Shatz
- License: Creative Commons Attribution 4.0 International (CC BY 4.0)
— https://esahubble.org/copyright/
- Downloaded variant: `wallpaper_uhd` (3840×2160)
- Downloaded variant: `large` (3547×2065)
ESA/Hubble images may be freely reproduced provided they are clearly and
visibly credited. This file exists to carry that credit alongside the asset —

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 MiB

After

Width:  |  Height:  |  Size: 934 KiB

View File

@ -104,6 +104,20 @@ hl.window_rule({
move = "(monitor_w/2 - window_w/2) (monitor_h/2 - window_h/2)",
})
-- dialogs — float any dialog-like window at its natural (minimum) size, centred on
-- the cursor: renaming dialogs, generic Save/Open/Confirm/Delete/Move/Copy/Replace/
-- Properties/Preferences dialogs, and Firefox "Opening <file>" download prompts.
-- Hyprland already auto-floats real in-process xdg/X11 dialogs; this catches the ones
-- that tile because they carry no dialog hint, matched heuristically by title. No
-- `size`, so the natural (minimum) size is kept and the cursor-centre offsets use the
-- real window_w/h (see the filepicker note above re: move/size ordering).
hl.window_rule({
name = "dialog-float",
match = { title = "^(Rename|Save|Opening |Open |Confirm|Delete|Move|Copy|Replace|Properties|Preferences).*" },
float = true,
move = "(cursor_x-(window_w/2)) (cursor_y-(window_h/2))",
})
-- spotify floating
hl.window_rule({
name = "spotify-float",

4
setup/modules/Desktop-Environments/hyprdrive.sh Normal file → Executable file
View File

@ -37,7 +37,7 @@
# workspaces (all tied to the dropped shell stack)
# - wofi-calc's Super+Alt+F bind now opens qalculate-gtk instead (already a
# general-purpose package, not wofi-dependent)
# - Default wallpaper is a real NASA/ESA Hubble image (Pillars of Creation,
# - Default wallpaper is a real ESA/Hubble image ("Rings of Relativity",
# CC BY 4.0 — desktopenvs/hyprdrive/wallpaper/, see its CREDITS.md) instead
# of the personal Nextcloud-hosted background hyprlua.sh fetches
#
@ -256,7 +256,7 @@ cp ~/Dotfiles/colors.conf ~/.config/colors.conf
log "Copying wallpaper and resources..."
mkdir -p ~/Pictures
# Default wallpaper: NASA/ESA Hubble "Pillars of Creation" (CC BY 4.0 — see
# Default wallpaper: ESA/Hubble "Rings of Relativity" (CC BY 4.0 — see
# desktopenvs/hyprdrive/wallpaper/CREDITS.md). hyprpaper.conf and hyprlock-
# backgrounds.conf both already default to ~/Pictures/background.jpg.
cp ~/Dotfiles/desktopenvs/hyprdrive/wallpaper/background.jpg ~/Pictures/background.jpg