Giter Site home page Giter Site logo

i3-chrome-tab-dragging's Introduction

Disclaimer ⚠️

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

Description – What it does

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.

Installation

  • 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 and With

Without i3-chrome-tab-dragging.py: without

With i3-chrome-tab-dragging.py: with

Contributing

You are very welcome to contribute by PR or Issue to report wishes or bugs. Please use the black code formatter.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.