ErikReider / SwayNotificationCenter

A simple GTK based notification daemon for SwayWM
GNU General Public License v3.0
1.15k stars 59 forks source link

[Feature] setting control-center-margin in percentage of the screen instead of pixels #333

Open K0SS4 opened 8 months ago

K0SS4 commented 8 months ago

Please read through the README and the Man pages before submitting Please also make sure that there isn't any prior issue describing this feature I did :)

Is your feature request related to a problem? Please describe. I'm using a 2 monitor setup where one of the monitors is 1920x1080 and the other is 2560x1440. When I set for example margin-top to like 400 it looks good on full-hd but for 2k it's a little to short.

Describe the solution you'd like I would like to set the control-center-margin-top/bottom/right/left in percentage of the screen like: "control-center-margin-top": "60%" That would make margin-top of my full-hd: 0.6 1080 = 648px and my 2k: 0.6 1440 = 864.

Describe alternatives you've considered Maybe setting different config for different monitors?

Thanks for making such an amazing notification system :)

ldelossa commented 6 months ago

Came here to see if this exists.

Percentage would be very helpful, especially now that I jump between two monitors like OP, but also two laptops, one 14inch and the other 16inch. (Yes I know I have a problem).