Fork of https://github.com/khanhas/ShapeCorners which is a fork of https://sourceforge.net/projects/shapecorners/.
This fork adds the SquareOnFullscreen
-Option with a whooping 10 lines of code. Also it is now possible to darken the cut out part of a window corner by a certain amount. This will make the round corners almost indistinguishable from window shadows (you can still see it when you look reaaallly closely).
- Customizable via config file
- Different types of corner:
Rounded
andChiseled
- Each corner can have different radius
- Ability to square corner when windows edge is at screen edge.
- Ability to define
Whitelist
andBlacklist
to exclude/force applying ShapeCorners
- Distro Debian based (Ubuntu, Kubuntu):
sudo apt install git cmake g++ gettext extra-cmake-modules qttools5-dev libqt5x11extras5-dev libkf5configwidgets-dev libkf5crash-dev libkf5globalaccel-dev libkf5kio-dev libkf5notifications-dev kinit-dev kwin-dev
git clone https://github.com/khanhas/ShapeCorners
cd ShapeCorners
mkdir build; cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DQT5BUILD=ON
make && sudo make install
kwin_x11 --replace &
It should be now activated.
- Create file
shapecornersrc
in~/.config
- Follow this template:
[General]
Radius=10
CornerShadowTransparency=0.0,0.0,0.2,0.2
Type=Rounded
SquareAtScreenEdge=false
SquareOnFullscreen=false
FilterShadow=false
Whitelist=
Blacklist=
Radius
: Define all corners' or specific corner's radius. Accept 1 to 4 numbers, separate by,
. E.g.:Radius=20
: All corners have 20 radiusRadius=10,20
: Top Left and Bottom Right has 10; Top Right and Bottom Left has 20Radius=30,40,50
: Top Left has 30; Top Right and Bottom Left has 40; Bottom Right has 50Radius=20,50,30,10
: Top Left has 20; Top Right has 50; Bottom Right has 30; Bottom Left has 10
CornerShadowTransparency': Sets fake shadow transparency of the corners in the same order as
Radius`. Values not set default to 0.0 (no darkening)Type
:Rounded
orChiseled
SquareAtScreenEdge
: Square off corner at when window edge is at screen edge. Booleantrue
orfalse
.SquareOnFullscreen
: Square off all corners when application is running in fullscreen. Booleantrue
orfalse
FilterShadow
: Since there is no way to change corners of shadow layer, you might want to remove shadow layer out. Booleantrue
orfalse
.Whitelist
: List of window class names that will be forced to apply ShapeCorners. Separate them by,
. E.g.:Whitelist=conky
Whitelist=plasma,conky
Blacklist
: List of window class names that will be excluded from applying ShapeCorners. Separate them by,
. E.g.:Blacklist=krunner
Blacklist=krunner,display
After changing config, run:
kwin_x11 --replace &