windowframer is a python utility that takes care of drawing border images compatible with the sway-borders project.
Currently only one frame type is implemented, though additional types can be implemented easily.
frame type | produces | supports shadow | window status indicator |
---|---|---|---|
rounded | - square corners - round corners - rounded square corners |
yes | line all around the border |
Each frame type has its own settings, use --help after specifying the type to list all available options.
windowframer depends on python3 and the pycairo library.
After installing the dependencies, clone the repo and make the "windowframer.py" script executable.
./windowframer.py <output_file> <frame_type> {specific_frame_parameters} [{optional_frame_parameters}]
example:
./windowframer.py test.png rounded --shadow_spread 4 5 0.4 #2E3440
./windowframer.py <output_file> <frame_type> --help
example:
./windowframer.py test.png rounded --help
NOTICE: When using --help, nothing is really written to the specified output file.