Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.2 KB

File metadata and controls

39 lines (26 loc) · 1.2 KB

xround

A Python script to add rounded corners to X-based displays.

xround uses python-xlib and X's Shape extension to draw faux corners above the user's display. The corners are #000000 and will persist across workspaces and above all (most) windows.

Image

Installation:

pip install xround

Or call the script directly with python-xlib installed.

Usage:

# Running the script without flags uses defaults of 16 for all corners
xround.py

# Set which corners to display using cardinal direction (nw,ne,se,sw) in any order (case insensitive)
xround.py --corners NW,NE
xround.py --corners NW,ne,SE

# Set the size of the corners
xround.py --size 24
xround.py --size 32
xround.py --corners NW,NE --size 20

Todo / Further Ideas :

  1. Make the corners less jagged, perhaps by using a compositor of some sort, or a method to draw pixels with varying alpha values along the edges of each corner's pixmap.
  2. Find a way to keep the corners above a fullscreen'ed window.
  3. Create an optional way to prevent the mouse pointer from going underneath each corner.
  4. Options to set individual sizes for each corner.