Skip to content

Instantly share code, notes, and snippets.

View gorango's full-sized avatar
👋
🌍

Goran gorango

👋
🌍
  • undefined
View GitHub Profile
@gorango
gorango / mousegrid
Last active April 28, 2025 20:49
Mouse control with the keyboard using a grid overlay.
#!/usr/bin/env python3
# linux deps: python-gobject gtk3 picom
# i3/config:
# exec_always --no-startup-id picom -b
# for_window [title="MouseGrid"] floating enable, border none
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk, GLib
import cairo