pop-os / cosmic-screenshot

Utility for capturing screenshots via XDG Desktop Portal
GNU General Public License v3.0
25 stars 11 forks source link

[Feature Request] Screenshot the currently active screen when using --interactive. #58

Open nevdelap opened 1 month ago

nevdelap commented 1 month ago

My screens are are like this, 1 is my laptop, 0 is my external monitor.

screens

Running cosmic-screenshot --interactive=false --save-dir=~/Pictures screenshots the laptop screen, rather than the currently active screen.

I think in order to do non-interactive things, especially that are triggered by keyboard shortcuts, screenshotting the active screen makes sense.

There might be cases where being able to specify the screen to screenshot makes sense.

I'd suggest that always screenshotting one screen and not being able to control it isn't ideal.

iamkartiknayak commented 1 month ago

cosmic-screenshot --interactive=false --save-dir=~/Pictures This command captured screenshot of both screens in my case

cosmic-screenshot:
  Installed: 0.1.0~1721939965~22.04~031eb66

Screenshot_2024-09-24_20-18-45

iamkartiknayak commented 1 month ago

It would be better to have a --display flag to pass the appropriate number to capture the desired screen.

nevdelap commented 2 weeks ago

I found now I am getting the same as you, it screenshots both screens at the same time. I recently switched from lightdm greeter to cosmic greeter. I wonder if that has anything to do with it. Having something like --display=[active|0|1...] would work.