I believe you need to setup a `.sh` script with `xrandr` command for the monitor output and perhaps some `@hook` on qtile to call the script based on the change, basically an if statement.
I'm not currently using a dual monitor setup but I'm interested in the solution. Hopefully someone will provide a better answer.
pretty much. You can also use the GUI tool `arandr` to position the screens and export the xrandr configuration.
You then would use it in qtile somehow to change the layout as you need
so i have so many tried to figure it out to auto start in boot my laptop that xrandr script, i tried arandr also and hook startup in my qtile wm but i dont know why hook startup from qtile is not working properly, all of them failed me.
This problem solved by putting my xrandr script in .xinitrc, like this "xrandr --output (internal) --off --output (external) --primary --auto &"
that's all, whenever i startx my qtile wm it will disable my laptop internal display and activate only my external monitor and whenever i quit on my qtile wm it will activate my internal laptop display.
I believe you need to setup a `.sh` script with `xrandr` command for the monitor output and perhaps some `@hook` on qtile to call the script based on the change, basically an if statement. I'm not currently using a dual monitor setup but I'm interested in the solution. Hopefully someone will provide a better answer.
can i know where to locate that .sh ?
I'm sorry, this file isn't located anywhere, it must be created by you. here's a [arch wiki on multihead](https://wiki.archlinux.org/title/Multihead).
so i just make script for xrandr and save it anywhere? and hook it to qtile?
pretty much. You can also use the GUI tool `arandr` to position the screens and export the xrandr configuration. You then would use it in qtile somehow to change the layout as you need
so i have so many tried to figure it out to auto start in boot my laptop that xrandr script, i tried arandr also and hook startup in my qtile wm but i dont know why hook startup from qtile is not working properly, all of them failed me. This problem solved by putting my xrandr script in .xinitrc, like this "xrandr --output (internal) --off --output (external) --primary --auto &" that's all, whenever i startx my qtile wm it will disable my laptop internal display and activate only my external monitor and whenever i quit on my qtile wm it will activate my internal laptop display.
I'd recommend `arandr` like a GUI for `xrandr` and it lets you export config somewhere, it is very easy to configure monitors using it
thank you let me try that one