Rofi script to minimize / unminimize multiple windows in qtile

Overview

Qminimize

Rofi script to minimize / unminimize multiple windows in qtile

Additional requirements :

EWMH module

fuzzywuzzy module

How to use it :

- Clone the directory and place the file "Qminimize" in a directory in your $PATH
    E.G. : I have mine in .local/bin but otherwise you can put it in /usr/bin

- Make the file executable with "chmod +x Qminimize"

- Add the keys to the qtile configuration :      
    Key([mod, "shift"], "m", lazy.spawn('Qminimize -u'), desc="Minimize window"), # - u to show the rofi menu
    Key([mod], "m", lazy.spawn("Qminimize -m")), # -m to minimize
    
- When the rofi menu is open press :
    "Enter" to unminize the select entry 
    "Shift + Enter" to select more choices and then "Enter" to confirm

Troubleshooting :

- If for some reason the program doesn't work, to see what the problem is, launch it by terminal with:
     "Qminimize -m" to minimize the focused window
     "Qminimize -u" to show the rofi menu
You might also like...
A python script for combining multiple native SU2 format meshes into one mesh file for multi-zone simulations.

A python script for combining multiple native SU2 format meshes into one mesh file for multi-zone simulations.

Python script to commit to your github for a perfect commit streak. This is purely for education purposes, please don't use this script to do bad stuff.

Daily-Git-Commit Commit to repo every day for the perfect commit streak Requirments pip install -r requirements.txt Setup Download this repository. Cr

A script where you execute a script that generates a base project for your gdextension

GDExtension Project Creator this is a script (currently only for linux) where you execute a script that generates a base project for your gdextension,

Hook and simulate global keyboard events on Windows and Linux.

keyboard Take full control of your keyboard with this small Python library. Hook global events, register hotkeys, simulate key presses and much more.

Attempt at a Windows version of the plotman Chia Plot Manager system
Attempt at a Windows version of the plotman Chia Plot Manager system

windows plotman: an attempt to get plotman to work on windows THIS IS A BETA. Not ready for production use just yet. Almost, but not quite there yet.

Tomador de ramos UC automatico para Windows, Linux y macOS

auto-ramos v2.0 Tomador de ramos UC automatico para Windows, Linux y macOS Funcion Este script de Python tiene como principal objetivo hacer que la to

WinBoost: Boost your windows system.

Winboost runs a complete checkup of your entire system locating junk files, speed-reducing issues and causes of any system or application glitches or crashes. Through a lot of research and testing, we have worked out precise techniques that allow locating issues, which can be safely removed with no risk of damaging your operating system.

Windows symbol tables for Volatility 3

Windows Symbol Tables for Volatility 3 This repository is the Windows Symbol Table storage for Volatility 3. How to Use $ git clone https://github.com

Change your Windows background with this program safely &  easily!
Change your Windows background with this program safely & easily!

Background_Changer Table of Contents: About the Program Features Requirements Preview Credits Reach Me See Also About the Program: You can change your

Comments
  • error with multiple monitors

    error with multiple monitors

    it show this error with multiple monitors;

    Traceback (most recent call last):
      File "/home/ben/.local/bin/Qminimize", line 97, in <module>
        main()
      File "/home/ben/.local/bin/Qminimize", line 84, in main
        string = minimized_windows_list(minimized_icons)
      File "/home/ben/.local/bin/Qminimize", line 68, in minimized_windows_list
        if c.window[i].info()["minimized"] is True:
    KeyError: 'minimized'
    

    there is no error when unplugged external monitor and reboot.

    opened by bentobit8 2
  • Cannot get it to work :(

    Cannot get it to work :(

    qminimize -u
    Traceback (most recent call last):
      File "/usr/lib/python3.10/site-packages/libqtile/ipc.py", line 118, in unpack
        assert len(data) >= HDRLEN
    AssertionError
    
    The above exception was the direct cause of the following exception:
    
    Traceback (most recent call last):
      File "/home/xircon/.local/bin/qminimize", line 97, in <module>
        main()
      File "/home/xircon/.local/bin/qminimize", line 84, in main
        string = minimized_windows_list(minimized_icons)
      File "/home/xircon/.local/bin/qminimize", line 68, in minimized_windows_list
        if c.window[i].info()["minimized"] is True:
      File "/usr/lib/python3.10/site-packages/libqtile/command/client.py", line 227, in __getattr__
        if not self._command.has_command(self._current_node, name):
      File "/usr/lib/python3.10/site-packages/libqtile/command/interface.py", line 251, in has_command
        commands = self.execute(cmd_call, (), {})
      File "/usr/lib/python3.10/site-packages/libqtile/command/interface.py", line 225, in execute
        status, result = self._client.send((call.parent.selectors, call.name, args, kwargs))
      File "/usr/lib/python3.10/site-packages/libqtile/ipc.py", line 161, in send
        return asyncio.run(self.async_send(msg))
      File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
        return loop.run_until_complete(main)
      File "/usr/lib/python3.10/asyncio/base_events.py", line 641, in run_until_complete
        return future.result()
      File "/usr/lib/python3.10/site-packages/libqtile/ipc.py", line 189, in async_send
        data, _ = _IPC.unpack(read_data, is_json=self.is_json)
      File "/usr/lib/python3.10/site-packages/libqtile/ipc.py", line 123, in unpack
        raise IPCError("error reading reply! (probably the socket was disconnected)") from e
    libqtile.ipc.IPCError: error reading reply! (probably the socket was disconnected)
    

    Any ideas? EndeavourOS (Arch with an installer), qtile 0.19.1.dev10+gda78ea40

    opened by xircon 2
  • fixed the error with Qminimize -u when there're windows without the

    fixed the error with Qminimize -u when there're windows without the "minimized" property

    this error was occurring to me because Qtile actually considers the top bar a window for some reason, and the "minimized" property is not present there. i added a small tweak so that minimized_windows_list checks if a window has that property to begin with and then checks if it's true.

    opened by DeciPaliz 1
  • Unminimize doesnt work  u_u i think is for a pyhton update

    Unminimize doesnt work u_u i think is for a pyhton update

    ➜ Qminimize -u Traceback (most recent call last): File "/usr/bin/Qminimize", line 97, in main() File "/usr/bin/Qminimize", line 81, in main window_class = get_wm_class() File "/usr/bin/Qminimize", line 24, in get_wm_class win = EWMH().getClientList() File "/home/edenac/.local/lib/python3.10/site-packages/ewmh/ewmh.py", line 70, in init self.display = _display or display.Display() File "/home/edenac/.local/lib/python3.10/site-packages/Xlib/display.py", line 89, in init self.display = _BaseDisplay(display) File "/home/edenac/.local/lib/python3.10/site-packages/Xlib/display.py", line 71, in init protocol_display.Display.init(self, *args, **keys) File "/home/edenac/.local/lib/python3.10/site-packages/Xlib/protocol/display.py", line 166, in init raise error.DisplayConnectionError(self.display_name, r.reason) Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'Invalid MIT-MAGIC-COOKIE-1 key'

    or u can give me a tip ? i love this feature :'c

    opened by edenac 7
Owner
null
Simple rofi script to choose player for playerctl to execute its command

rofi-playerctl-switcher simple rofi script to choose player for playerctl to execute its command Usage copy playerSwitch.py and playerctl.sh to ~/.con

null 2 Jan 3, 2022
My qtile config with a fresh-looking bar and pywal support

QtileConfig My qtile config with a fresh-looking bar and pywal support. Note: This is my first rice and first github repo. Please excuse my poor codin

Eden 4 Nov 10, 2021
Shai-Hulud - A qtile configuration for the (spice) masses

Shai-Hulud - A qtile configuration for the (spice) masses Installation Notes These dotfiles are set up to use GNU stow for installation. To install, f

null 16 Dec 30, 2022
A Linux program to create a Windows USB stick installer from a real Windows DVD or image.

WoeUSB-ng A Linux program to create a Windows USB stick installer from a real Windows DVD or image. This package contains two programs: woeusb: A comm

Longinus 1 Nov 19, 2021
tox-gh is a tox plugin which helps running tox on GitHub Actions with multiple different Python versions on multiple workers in parallel

tox-gh is a tox plugin which helps running tox on GitHub Actions with multiple different Python versions on multiple workers in parallel. This project is inspired by tox-travis.

tox development team 19 Dec 26, 2022
Islam - This is a simple python script.In this script I have written all the suras of Al Quran. As a result, by using this script, you can know the number of any sura at the moment.

Introduction: If you want to know sura number of al quran by just typing the name of sura than you can use this script. Usage in termux: $ pkg install

Fazle Rabbi 1 Jan 2, 2022
WhyNotWin11 - Detection Script to help identify why your PC isn't Windows 11 Release Ready

WhyNotWin11 - Detection Script to help identify why your PC isn't Windows 11 Release Ready

Robert C. Maehl 5.9k Dec 31, 2022
A python script developed to process Windows memory images based on triage type.

Overview A python script developed to process Windows memory images based on triage type. Requirements Python3 Bulk Extractor Volatility2 with Communi

CrowdStrike 245 Nov 24, 2022
The ldapconsole script allows you to perform custom LDAP requests to a Windows domain

ldapconsole The ldapconsole script allows you to perform custom LDAP requests to a Windows domain. Features Authenticate with password Authenticate wi

Podalirius 38 Dec 9, 2022
Python script to combine the statistical results of a TOPAS simulation that was split up into multiple batches.

topas-merge-simulations Python script to combine the statistical results of a TOPAS simulation that was split up into multiple batches At the top of t

Sebastian Schäfer 1 Aug 16, 2022