There are versions for chromium/Google Chrome that work better than others. Here is a rough overview when this tool worked or was unnecessary:
- pre 83.x: Dragging is not working flawlessly, this tool was born to work around the issues
- 83.x–95.0.4630.0: Perfect window dragging, no tool assist needed
- 95.0.4630.0–97.0.4692.99: Major breakage in dragging, this tool cannot fix it
- 97.0.4692.99+: Dragging works like pre 83.x again, tool can work again, but it's not perfect
- around 100: It broke again see Issues #5 and #6
- ~103: Works like pre 83.x again, tool can work again, but it's not perfect
This script aims to solve a problem I have with dragging Chrome tabs while using the i3 window manager where it can be hard to place a second tab into another Chrome window. If it detects a Chrome window has been opened while the user is dragging (left mouse button is being pressed down), it switches the new window to floating mode so it can easily and independently be dragged to another Chrome window. If the mouse is released without the window being dropped in another chrome window, floating is toggled off, so the window will receive it's own new tile.
- Documentation (and FAQ – if any) can be found in this README.
- As mentioned in the disclaimer, there are issues, please read the open issues in this repository first before filing a new one
- If you have any ideas how to improve this, feel free to open a pull request.
- make sure all requirements are installed
pip install --user -r requirements.txt
- copy script to your place of choice, e.g.
~/.i3/i3-chrome-tab-dragging.py
- add this to i3 config:
exec_always --no-startup-id ~/.i3/i3-chrome-tab-dragging.py
For Arch Linux, there is a package in the AUR (thanks, syyyr):
https://aur.archlinux.org/packages/python-i3-chrome-tab-dragging-git
Without i3-chrome-tab-dragging.py
:
With i3-chrome-tab-dragging.py
:
You are very welcome to contribute by PR or Issue to report wishes or bugs. Please use the black code formatter.