mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2025-12-20 11:40:02 +01:00
FAQ/_index: Update to window rules v3
This commit is contained in:
parent
8b8b53051d
commit
a3884af556
1 changed files with 13 additions and 13 deletions
|
|
@ -130,15 +130,15 @@ use Flameshot, here are some configuration recommendations by users who've found
|
|||
workarounds.
|
||||
|
||||
```ini
|
||||
# noanim isn't necessary but animations with these rules might look bad. use at your own discretion.
|
||||
windowrule = noanim, class:^(flameshot)$
|
||||
windowrule = float, class:^(flameshot)$
|
||||
windowrule = move 0 0, class:^(flameshot)$
|
||||
windowrule = pin, class:^(flameshot)$
|
||||
windowrule = noinitialfocus, class:^(flameshot)$
|
||||
# no_anim isn't necessary but animations with these rules might look bad. use at your own discretion.
|
||||
windowrule = match:class flameshot, no_anim
|
||||
windowrule = match:class flameshot, float
|
||||
windowrule = match:class flameshot, move 0 0
|
||||
windowrule = match:class flameshot, pin
|
||||
windowrule = match:class flameshot, no_initial_focus
|
||||
# set this to your leftmost monitor id, otherwise you have to move your cursor to the leftmost monitor
|
||||
# before executing flameshot
|
||||
windowrule = monitor 1, class:^(flameshot)$
|
||||
windowrule = match:class flameshot, monitor 1
|
||||
|
||||
# ctrl-c to copy from the flameshot gui gives warped images sometimes, but
|
||||
# setting the env fixes it
|
||||
|
|
@ -347,9 +347,9 @@ these window rules to your config to make these programs work with both of your
|
|||
screens.
|
||||
|
||||
```ini
|
||||
windowrule2 = float,title:^(flameshot)
|
||||
windowrule = move 0 0,title:^(flameshot)
|
||||
windowrule = suppressevent fullscreen,title:^(flameshot)
|
||||
windowrule = match:title flameshot, float true
|
||||
windowrule = match:title flameshot, move 0 0
|
||||
windowrule = match:title flameshot, suppress_event fullscreen
|
||||
```
|
||||
|
||||
### I cannot bind SUPER as my mod key on my laptop
|
||||
|
|
@ -403,7 +403,7 @@ Window 55d794495400 -> :
|
|||
If the pop-up disappears as you hover over it, you can add to your config:
|
||||
|
||||
```ini
|
||||
windowrule = stayfocused, title:^(TITLE)$, class:^(CLASS)$
|
||||
windowrule = stay_focused, match:class CLASS, match:title TITLE
|
||||
```
|
||||
|
||||
This has a downside of not being able to click on anything in the main UI until
|
||||
|
|
@ -412,13 +412,13 @@ you've interacted with the pop-up.
|
|||
If the pop-up disappears immediately, you can use:
|
||||
|
||||
```ini
|
||||
windowrule = minsize 1 1, title:^(TITLE)$, class:^(CLASS)$
|
||||
windowrule = min_size 1 1, match:class CLASS, match:title TITLE
|
||||
```
|
||||
|
||||
If the pop-up doesn't open at the cursor position, try the following:
|
||||
|
||||
```ini
|
||||
windowrule = move onscreen cursor, title:^(TITLE)$, class:^(CLASS)$
|
||||
windowrule = move cursor_x cursor_y, match:class CLASS, match:title TITLE
|
||||
```
|
||||
|
||||
This is required for apps running under xwayland only and there is usually no need
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue