Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)$
Expand Down
6 changes: 6 additions & 0 deletions crates/disktree-app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.))),
Expand Down