Set the window class to disktree

The desktop entry and the Hyprland rule already name this class. The
window never set a Wayland app id, so the class was empty and the rule
did not match.
This commit is contained in:
Mark Imbriaco
2026-09-24 20:43:52 -04:00
parent bf6cbbfbee
commit afc87fc647
2 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -202,7 +202,8 @@ tested:
## On Hyprland
Hyprland tiles new windows, so disktree opens into whatever tile it is given.
It is designed for a roomy window; float it, or give it a rule:
It is designed for a roomy window; float it, or give it a rule. The window
class is `disktree`.
```
windowrule = float, class:^(disktree)$
+6
View File
@@ -91,6 +91,12 @@ fn main() -> Result<()> {
),
..Default::default()
}),
// Wayland app id. Hyprland reports it as the window
// class, and the desktop entry's StartupWMClass and
// the documented window rule both match `disktree`.
// Left unset, the class is empty and that rule never
// matches.
app_id: Some("disktree".to_owned()),
// Below this the treemap stops being readable, so ask
// the compositor not to go there.
window_min_size: Some(size(px(900.), px(600.))),