It's a portal for your mouse
I was inspired by the game Portal and thought "i should make this for computers" So I made this software.
It's basically the same thing:
- Enter from orange, exit from blue
- Enter from blue, exit from orange
Basically, a shortcut for your mouse
Built on and for Hyprland on Arch Linux x86_64.
- Orange and blue portals
- Enter from either direction
- Portals stay above other windows
- Click-through portal windows
- Move portals using
Super + Drag - Teleportation is disabled while holding
Super
- Arch Linux
- Hyprland 0.55+
- Python 3
- PySide6
Clone the repo:
git clone <your-repository-url>
cd Mouse-Portal/Mouse_portalCreate Venv
python -m venv .venv
source .venv/bin/activatepip install PySide6
Usage
Run:
python main.pyTwo portals will appear on your desktop. Move them using:- Super + Left Mouse Drag
It uses Hyprland's IPC through hyprctl to:
- Track the current cursor position.
- Detect when the cursor enters a portal.
- Move the cursor to the corresponding exit portal. as easy as that (it was not easy)
- Currently designed specifically for Hyprland.
- Its kinda useless bcs as a hyprland user i never touch the mouse
Thanks valve for making such awsome games
