qtile-window-trashbin
Qtile Extension to reopen closed windows. Never think "Oh shit" again when you close a window.
Installation
You can install the package using pip
pip install qtile-window-trashbin
Usage
This module adds a "Thrashbin" class. Use it in your keybindings instead of kill. The pane will be killed after a given time.
U could put the following in your ~/.config/qtile/config.py
from trashbin import Trashbin
trash_group = ScratchPad("killPane") #We use an invisible Group: A ScratchPad.
groups.extend([trash_group]) # Let's append it to to groups.
trash = Trashbin(trash_group.name, delay=5) # Initialize the Trashbin. Use the newly created Group to store the windows. Kill a Window put to the trashbin afert 5 seconds.
keys.extend([
Key([mod], "q", lazy.function(trash.append_currend_window)), # move to trash
Key([mod, "shift"], "q", lazy.window.kill()), # real kill. Sometimes you want to kill insteadly.
Key([mod, "shift"], "e", lazy.function(trash.pop_to_current_group)) # Restore the last window put to the trashbin.
])
Afterwards you can hit Super + q and the current window be moved to the trash.
Hit Super + Shift + e to restore the last window, put to the trashbin.
Sometimes moving a window to the trash is not what you want.
For example when quiting an video player you may want to stop the playing immediately.
Hit Super + Shift + q to quit immediatley. Caution: This is not undoable.
Metadata
Release files for qtile-window-trashbin 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qtile-window-trashbin-0.0.2.tar.gz | 14.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qtile_window_trashbin-0.0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 29.8 kB
Release files / qtile-window-trashbin-0.0.2.tar.gz
| Download URL | qtile-window-trashbin-0.0.2.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8281ce7d395f6ad84e0310343b58bf8bbf1bbc5828627eda9bb70b071833cf34
|
|
BLAKE2b-256 checksum How to use checksums |
d1f14cb20830323039645da90e6f0cac93fe7c3c27a1cce4d4ddcb43af4fe535
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|
Release files / qtile_window_trashbin-0.0.2-py2.py3-none-any.whl
| Download URL | qtile_window_trashbin-0.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a1fcd456f10996089b6fffea04e3040ae67be92619f8f1a3eb44f6c346181d8f
|
|
BLAKE2b-256 checksum How to use checksums |
a93cdb10fe9aef9c67d0634e7604b39cf25b7e799a77cad2a7a9d4563a0b1374
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|