mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2025-12-24 05:30:03 +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.
|
workarounds.
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
# noanim isn't necessary but animations with these rules might look bad. use at your own discretion.
|
# no_anim isn't necessary but animations with these rules might look bad. use at your own discretion.
|
||||||
windowrule = noanim, class:^(flameshot)$
|
windowrule = match:class flameshot, no_anim
|
||||||
windowrule = float, class:^(flameshot)$
|
windowrule = match:class flameshot, float
|
||||||
windowrule = move 0 0, class:^(flameshot)$
|
windowrule = match:class flameshot, move 0 0
|
||||||
windowrule = pin, class:^(flameshot)$
|
windowrule = match:class flameshot, pin
|
||||||
windowrule = noinitialfocus, class:^(flameshot)$
|
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
|
# set this to your leftmost monitor id, otherwise you have to move your cursor to the leftmost monitor
|
||||||
# before executing flameshot
|
# 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
|
# ctrl-c to copy from the flameshot gui gives warped images sometimes, but
|
||||||
# setting the env fixes it
|
# 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.
|
screens.
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
windowrule2 = float,title:^(flameshot)
|
windowrule = match:title flameshot, float true
|
||||||
windowrule = move 0 0,title:^(flameshot)
|
windowrule = match:title flameshot, move 0 0
|
||||||
windowrule = suppressevent fullscreen,title:^(flameshot)
|
windowrule = match:title flameshot, suppress_event fullscreen
|
||||||
```
|
```
|
||||||
|
|
||||||
### I cannot bind SUPER as my mod key on my laptop
|
### 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:
|
If the pop-up disappears as you hover over it, you can add to your config:
|
||||||
|
|
||||||
```ini
|
```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
|
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:
|
If the pop-up disappears immediately, you can use:
|
||||||
|
|
||||||
```ini
|
```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:
|
If the pop-up doesn't open at the cursor position, try the following:
|
||||||
|
|
||||||
```ini
|
```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
|
This is required for apps running under xwayland only and there is usually no need
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue