xresize.moofirex.github.io

📏 xResize

A sleek and simple tool to quickly resize your active window with a keyboard shortcut.

Perfect for developers, designers, and anyone who needs to manage window sizes with precision and speed! 🚀

Download

Get the Python program to get xResize on your system.

Download xresize.py

See It In Action

xResize allows you to snap your active window to any size you define.

System Protocol

This tool is designed specifically for Debian-based Linux distributions (like Ubuntu, Mint, etc.) using the X11 display server. It will not work on Wayland or other operating systems.

Dependencies

1. System Tools:

This tool uses `wmctrl` and `xdotool` to manage windows.

sudo apt update
sudo apt install wmctrl xdotool

2. Python Libraries:

It uses PySide6 for the user interface and pynput for keyboard shortcuts.

pip install PySide6 pynput

Execution

  1. Initiate Process:
    python xresize.py
  2. Daemonize (Optional): To keep it running after closing the terminal, use `nohup`.
    nohup python xresize.py &
  3. Activate Overlay:
    Engage hotkey sequence: Ctrl + Alt + X.
  4. Define Matrix:
    Input target dimensions: WIDTHxHEIGHT (e.g., 1920x1080).
  5. Execute Reconfiguration:
    Press Enter.
  6. Abort Sequence:
    Press Esc.

xResize licensed under the GPLv3 License.

Website licensed under the MIT License.