mirror of
https://github.com/tobi/disktree.git
synced 2026-11-28 08:00:53 +00:00
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:
@@ -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)$
|
||||
|
||||
@@ -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.))),
|
||||
|
||||
Reference in New Issue
Block a user