Floating rules for scratchpad
Issue #45
resolved
How to specify a rule that if I see the following class value for a terminal?
WM_CLASS(STRING) = "scratchpad", "st-256color"
I try the following:
dkcmd rule class="^scratchpad st-256color$" scratch=true float=true x=center y=center
dkcmd rule class="^scratchpad:st-256color$" scratch=true float=true x=center y=center
But not work
Comments (3)
-
repo owner -
repo owner - changed status to open
-
reporter - changed status to resolved
Ohh. The first string not the class, but instance. I dont know this. And I used st -n, but this wrong, because set instance, not class. I modified, and now, working fine. Thank u!
- Log in to comment
Hey sorry for the delay, so with the xprop WM_CLASS section, it has both the class and instance.
I use the following alias because I always forget the order
Now you can use that to match with the dk rule, in this case it would be something like
But this shouldn’t be necessary, you can just set the class of most terminals and match only that, so like
dk rule
spawning the scratchpad terminal (other terminals will have a similar flag)
Let me know if that makes sense and solves the issue.