Skip to content

A small utility for drawing rounded screen corners on X11

License

Notifications You must be signed in to change notification settings

Spydr06/xcorners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xcorners

A small utility to draw rounded screen corners on X11 window managers.

xcorners with polybar on bspwm: demo.png

Usage

$ xcorners --help
Usage: ./xcorners [OPTIONS]

Options:
  -W <width>    Set the horizontal space between the corners. [3000]
  -H <height>   Set the vertical space between the corners. [1920]
  -x <offset>   Set the horizontal offset. [0]
  -y <offset>   Set the vertical offset. [0]
  -r <radius>   Set the corner radius. [12]
  -t, -T        Enable or disable top corners. [enabled]
  -b, -B        Enable or disable bottom corners. [disabled]
  -c <color>    Set the corner color. [000000ff]
  -1            Only allow one instance.
  -h, --help    Print this help text and exit.

Important

If you experience issues with (partially) black screens, you'll need to enable a transparancy-capable x11 compositor.

Example usage: My bspwm and sxhkd configuration.

Install

If you are using Arch Linux, you can install xcorners from the xcorners-git AUR package.

Alternatively, you can build it from source.

Dependencies:

  • gcc
  • make
  • libX11, libXfixes, libCairo (install -dev or -devel packages)

Building:

After you cloned the repository, use make to build xcorners:

$ make

If successful, this creates the executable ./xcorners.

Installation:

# make install

This installs xcorners to /usr/bin, if you want another prefix, set it using PREFIX="" or EXEC_PREFIX="".

TO-DO

  • Basic functionality
  • Option to not launch when instance is already running
  • Automatic screen detection and configuration
  • Automatic fullscreen detection
  • Bugtesting

If you encounter bugs, have more ideas or want to expand the functionality, feel free to open an issue or pull request :D

License

xcorners is licensed under the MIT License. See ./LICENSE or the source for more information.

About

A small utility for drawing rounded screen corners on X11

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published