1: You need to set that up in your `config.py`. I've recently migrated from 
i3, so my config is primarily trying to replicate i3's 
behavior: https://github.com/jrwrigh/dotfiles2.0/tree/T14/.config/qtile

For switching monitors, I've bound the `lazy.next_layout()` to a keyboard 
shortcut. I also have a custom function `move_next_screen` to switch groups 
that are appearing on either screen. Unfortunately, I haven't figured out a 
way to emulate using the focus movement keys to also change monitors, 
though I'm quite sure that would be somewhat simple to implement. 

2: I'm not sure why that would happen. When you say the bars were "broken" 
do you mean they disappeared?
On Wednesday, May 26, 2021 at 7:17:06 AM UTC-6 [email protected] wrote:

> Alright, I managed to set up my monitors so they aren't mirrored. Now a 
> few new problems cropped up:
>
> 1: When I initially set up the resolution with arandr, everything looked 
> fine, the bars looked nicely on all monitors and I could move
> the mouse between the monitors as expected. Now, how do I move windows 
> between the monitors? Or switch between
> monitors xmonad/i3 style? What's the qtile way of using multiple screens?
>
> 2: As soon as I restarted qtile(didn't update the config) the bars on all 
> 3 screens were broken. I didn't get any error messages,
> and everything else worked like before.
>
> On Tuesday, 25 May 2021 at 17:14:23 UTC+2 [email protected] wrote:
>
>> 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/9270c3a5-234d-4ae1-b0c7-830072a55d30n%40googlegroups.com.

Reply via email to