Coder Social home page Coder Social logo

greatecho / shapecorners Goto Github PK

View Code? Open in Web Editor NEW

This project forked from khanhas/shapecorners

0.0 0.0 0.0 21 KB

KDE effect rounds/chisels corners of your windows.

License: GNU General Public License v3.0

CMake 23.25% GLSL 3.68% C++ 73.07%

shapecorners's Introduction

ShapeCorners

img

KDE effect rounds/chisels corners of your windows.

Fork of https://sourceforge.net/projects/shapecorners/

Features:

  • Customizable via config file
  • Different types of corner: Rounded and Chiseled
  • Each corner can have different radius
  • Ability to square corner when windows edge is at screen edge.
  • Ability to define Whitelist and Blacklist to exclude/force applying ShapeCorners

Dependencies

  • 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 

Build

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.

Config

  • Create file shapecornersrc in ~/.config
  • Follow this template:
[General]
Radius=10
Type=Rounded
SquareAtScreenEdge=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 radius
    • Radius=10,20: Top Left and Bottom Right has 10; Top Right and Bottom Left has 20
    • Radius=30,40,50: Top Left has 30; Top Right and Bottom Left has 40; Bottom Right has 50
    • Radius=20,50,30,10: Top Left has 20; Top Right has 50; Bottom Right has 30; Bottom Left has 10
  • Type: Rounded or Chiseled
  • SquareAtScreenEdge: Square off corner at when window edge is at screen edge. Boolean true or false.
  • FilterShadow: Since there is no way to change corners of shadow layer, you might want to remove shadow layer out. Boolean true or false.
  • 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 &

shapecorners's People

Contributors

khanhas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.