Skip to main content

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)

Source distribution for qtile-window-trashbin 0.0.2
File Size Uploaded Provenance Actions
qtile-window-trashbin-0.0.2.tar.gz 14.6 kB Without provenance Details for qtile-window-trashbin-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qtile-window-trashbin 0.0.2
File Interpreter ABI Platform Actions
qtile_window_trashbin-0.0.2-py2.py3-none-any.whl Python 3, Python 2 none any Details for qtile_window_trashbin-0.0.2-py2.py3-none-any.whl

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

Security for qtile-window-trashbin 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page