A thrashbin for qtile windows.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file qtile-window-trashbin-0.0.2.tar.gz
.
File metadata
- Download URL: qtile-window-trashbin-0.0.2.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8281ce7d395f6ad84e0310343b58bf8bbf1bbc5828627eda9bb70b071833cf34 |
|
MD5 | c84030dfd13de02a1db464f604f2412d |
|
BLAKE2b-256 | d1f14cb20830323039645da90e6f0cac93fe7c3c27a1cce4d4ddcb43af4fe535 |
File details
Details for the file qtile_window_trashbin-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: qtile_window_trashbin-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1fcd456f10996089b6fffea04e3040ae67be92619f8f1a3eb44f6c346181d8f |
|
MD5 | 3c7aa32968b2f6e1e0b4a564f425dcf2 |
|
BLAKE2b-256 | a93cdb10fe9aef9c67d0634e7604b39cf25b7e799a77cad2a7a9d4563a0b1374 |