If the screens are mirrored, then the issue is with the monitor setup, not qtile. Try using xrandr or it's GUI equivalent arandr to make it so that the screens are positioned separately not mirrored.
If you use dmenu, check out Luke Smith's displayselect script/function for as a quick way to get monitors setup: https://github.com/LukeSmithxyz/voidrice/blob/master/.local/bin/displayselect On Tuesday, May 25, 2021 at 1:46:36 AM UTC-6 [email protected] wrote: > Hi sorry for the late reply. > > Thanks for the other way to grab the number of monitors connected, but as > you said, that already seems to work for me. > > The issue is that both monitors plugged into the laptop mirror the laptop > screen and are also assigned the exact same resolution > (which also is a problem, the laptop screen is 1920x1080 and the monitors > are 1680x1050). > > So all screens show the same content and have the same resolution. > > Though I never saw qtile used with multiple screens so I am also not > entirely sure how to use them; and I couldn't find anything about it online. > So I at least have a resolution issue and don't know how to use multiple > screens in qtile or I also have unwanted mirroring(pretty sure the latter > is the case as > mouse movements were also mirrored across screens) > > On Wednesday, 19 May 2021 at 18:25:42 UTC+2 [email protected] wrote: > >> Looks like the last few outputs of the log show the config being >> successfully used and number of monitors being detected as 3. Could you >> elaborate on what the actual issue is? >> >> Note that for my version of `python-xlib`, I had to use item access >> rather than attribute access to get the `get_num_monitors` function to work >> correctly, but that appears to not be an issue for you. For documentation's >> sake, here's that function: >> >> def get_num_monitors(): >> num_monitors = 0 >> try: >> display = xdisplay.Display() >> screen = display.screen() >> resources = screen.root.xrandr_get_screen_resources()._data >> >> for output in resources['outputs']: >> monitor = display.xrandr_get_output_info(output, >> resources['config_timestamp'])._data >> preferred = False >> if "preferred" in monitor.keys(): >> preferred = monitor['preferred'] >> elif "num_preferred" in monitor.keys(): >> preferred = monitor['num_preferred'] >> if preferred: >> num_monitors += 1 >> except Exception: >> # always setup at least one monitor >> >> return 1 >> else: >> return num_monitors >> >> >> On Monday, May 17, 2021 at 2:18:33 AM UTC-6 [email protected] wrote: >> >>> I have a laptop with docking stations, that's sometimes connected to 2 >>> extra 16:9 1080p monitors and other times used alone or with a single 1444p >>> 21:9 monitor. >>> So I need a dynamic screen setup. For some reason I cannot get it >>> working though. >>> I tried to use the code from the wiki( >>> https://github.com/qtile/qtile/wiki/screens#setup-multiple-screens-dynamically), >>> >>> but no success. Here's my config: >>> https://github.com/Mithrandir2k18/dotfiles/blob/master/qtile/config.py >>> >>> And here's my error output: >>> >>> https://pastebin.com/uBTYhS5S >>> >>> Hope you guys can help me :) >>> Thanks for any help in advance! >>> >> -- You received this message because you are subscribed to the Google Groups "qtile-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/qtile-dev/4a136822-456a-4118-ace1-a63de61572e8n%40googlegroups.com.
