question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Qtile has the wrong index for the monitor.

See original GitHub issue

The issue:

I wanted to get monitor index same as result of xrandr --listmonitors, but qtile missmatch with it.

First is log of using my func of cycleing monitor using screen index. Second is result of `xrandr --listmonitors’ Qtile reported monitor0(DP-0, primary, WQHD)->monitor1(DVI-D-0, FHD)->monitor2(HDMI-0, WQHD) but xrandr reported DP-0->HDMI-0->DVI-D-0. I use display config generated by nvidia-setting. (Third is) image image image

  • Qtile version: 0.21.1
  • distro: ArchLinux
  • I make screen using my func but this is almost identical to the example. image

Required:

  • I have searched past issues to see if this bug has already been reported.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Sumi-Sumicommented, Sep 25, 2022

Sorry for the time delay in replying since the last time. I checked mode of xcffib. You are right, the mode was 0. The fourth one is the output for the VM. It appears that the patch I wrote about here is still needed. image

0reactions
husjoncommented, Aug 2, 2022

I’m also experiencing this issue. I’m looking to try out qtile, coming from bspwm (used for the last 3-4 years).

In my example, xrandr lists my monitor as following:

Monitors: 3
 0: +*DP-4 2560/598x1440/336+0+0  DP-4
 1: +DP-2 2560/598x1440/336+2560+0  DP-2
 2: +HDMI-0 1920/256x1080/144+5120+0  HDMI-0

while qtile swaps DP-2 and HDMI-0.

2022-08-02 16:20:29,185 WARNING libqtile hooks.py:<module>():L28 0 2560x1440+0+0
2022-08-02 16:20:29,185 WARNING libqtile hooks.py:<module>():L28 1 1920x1080+5120+0
2022-08-02 16:20:29,185 WARNING libqtile hooks.py:<module>():L28 2 2560x1440+2560+0

Since HDMI-0 is a monitor that occasionally is disconnected, this makes this issue quite tedious issue.

I find it a bit strange that qtile try to use monitor index from randr / xrandr instead of using monitor name (which are unique).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting the index of the current layout : r/qtile
When I run the config file in terminal, I get AttributeError: 'NoneType' object has no attribute 'current_layout' . So qtile has no ...
Read more >
Wrong number of positional arguments in lazy.function()
NB. the qtile object is automatically passed as the first argument. ... i = qtile.screens.index(qtile.current_screen) if i + 1 ...
Read more >
Scripting Commands
Move window to a specified screen. If index is not specified, we assume the current screen. Examples. Move window to current screen: toscreen ......
Read more >
Qtile Documentation
Either Qtile can then be downloaded from the package index or the Github repository ... False). If this group is already on the...
Read more >
Qtile
Qtile is a full-featured, hackable tiling window manager written in Python. Qtile is simple, small, and extensible. It is easy to write your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found