benruijl / sflock

Simple X display locker, with basic user feedback. Based on slock.
MIT License
50 stars 21 forks source link

Offset with dual monitors #11

Open DryEagle opened 9 years ago

DryEagle commented 9 years ago

With 2 monitors it sits right halfway across them, instead of centred on one or the other. Possible to add some switch to offset it by a number of pixels? e.g. -o -960 to offset it left 960 (half of a 1920 monitor) so that it's centered on the main screen?

ghost commented 9 years ago

:+1:

While sflock works well, this is kind of annoying.

benruijl commented 9 years ago

I have added the option -xshift someshift. First, I tried doing something fancy, like detecting multiple monitors, or finding the width of a single monitor, but X11 seems to be lacking support for this.