Keruspe / GPaste

Clipboard management system
BSD 2-Clause "Simplified" License
756 stars 54 forks source link

gpaste-client window should have a cli flag to stay in the center of the screen and not open at mouse cursor #427

Closed stefancocora closed 10 months ago

stefancocora commented 10 months ago

Hi Kerupse

Thank you for creating such a useful clipboard manager.

I'm using the gpaste clipboard manager with i3wm where my windows are always maximized in their own screen location.

I know there has been a feature introduced to open the gpaste window at mouse cursor ( see https://github.com/Keruspe/GPaste/pull/394 )

That might work fine for desktop environment users but it works badly for window manager users.

Use case broken example: If I have a terminal window full and I type at the bottom of the terminal window, when I call the gpaste window, it pops up at the mouse cursor, very low on the screen which isn't usable. Most of the gpaste window is hidden and searching and or scrolling doesn't help because the text is also hidden. (see attached screen grab )

Please create a cli flag or a way to tell the gpaste window to pop up in the center of the screen to solve this issue. gpaste-clipboard-manager-wrong-position-2023-09-05-113532_3840x2160_scrot

Keruspe commented 10 months ago

Hi,

While I understand the idea, I don't think that's a behaviour you want to change that often, you most likely always want either one or the other. Furthermore, the application is launched through dbus activation to follow gnome standards which would complicate this.

What do you think of having a setting key for this instead?

stefancocora commented 10 months ago

Hi,

I agree with your assessment you most likely always want either one or the other.

Do I understand what you're suggesting correctly, having a setting key would mean a setting key in a config file ?

This would work fine!

I wasn't aware that gpaste had a config file that it reads, I've only seen the GUI settings accessed through the 3 vertical dots, dreaded, nameless menu :)

stefancocora commented 10 months ago

Thank you!