Gustash/Hyprshot

Window mode does not recognize windows in second monitor

Opened this issue · 2 comments

Just installed hyprshot using git clone, configured it, and ran into an issue screenshotting windows on my secondary monitor.

On one monitor, with the terminal opened, the debug output of hyprshot -m window -d is:

Clients: [
  {
    "mapped": true,
    "hidden": false,
    "at": [
      22,
      52
    ],
    "size": [
      1876,
      1006
    ],
    "workspace": {
      "id": 1,
      "name": "1"
    },
    "floating": false,
    "monitor": 0,
    "class": "kitty",
    "title": "hyprshot -m window -d",
    "initialClass": "kitty",
    "initialTitle": "zsh",
    "pid": 60718,
    "xwayland": false,
    "pinned": false,
    "fullscreen": false,
    "fullscreenMode": 0,
    "fakeFullscreen": false,
    "grouped": [],
    "swallowing": "0x0",
    "focusHistoryID": 0
  }
]
Boxes:
22,52 1876x1006 hyprshot -m window -d
Geometry: 
Crop: , x

on the second monitor with a terminal and Chrome opened:

Clients: []
Boxes:

invalid box format: 

Geometry: 
Crop: , x

Geometry:
Crop: , x

It's strange unless you cancelled selection. But if you did, output should be like that:

...
Boxes:
2887,52 931x1006 Window mode does not recognize windows in second monitor · Issue #51 · Gustash/Hyprshot — Mozilla Firefox
1942,52 931x1006 Alacritty
selection cancelled
Geometry:
Crop: , x
supplied geometry did not intersect with any outputs

Ensure that you have installed all dependencies (listed in README) and can take screenshot at all

having same issue - I have no trouble taking screenshots on the first display, but the second one is failing in all modes.
grim -g "$(slurp)" does work for me, fyi.

installed hyprshot via nixpkgs.