murat-cileli / kwin-grayscale-effect Goto Github PK
View Code? Open in Web Editor NEWKWin Grayscale Effect
KWin Grayscale Effect
Nov 19 19:46:03 hello kwin_wayland[47984]: KPackageStructure of KPluginMetaData(pluginId:"kwin4_effect_grayscale", fileName: "/usr/share/kwin/effects/kwin4_effect_grayscale/metadata.json") does not match requested format "KWin/Effect"
metadata.json
{
+"KPackageStructure": "KWin/Effect",
"KPlugin": {
the above can be fixed by adding "KPackageStructure": "KWin/Effect" to metadata.json but then I get this error:
Nov 19 20:06:27 hello kwin_wayland[47984]: kwin_scripting: /usr/share/kwin/effects/kwin4_effect_grayscale/contents/code/main.js:87: error: Cannot call method 'connect' of undefined
the plugin works if I comment out line 87,88 in main.js, dont know if there is any ill effects
main.js
effects.windowActivated.connect(grayscaleEffect.windowActivated);
/* effects['desktopChanged(int,int)'].connect(grayscaleEffect.desktopChanged);
effects.desktopPresenceChanged.connect(grayscaleEffect.restartAnimation); */
effects.windowClosed.connect(grayscaleEffect.cancelAnimation);
Would it be possible to exclude a software from the Grayscale effect.
I would like to have colors in educational software only (Anki and GoldenDict) and leave the rest in Grayscale.
Would it be possible to implement that feature ?
Thanks for your great work !
For example, white becomes light orange, grey becomes dark orange, black stays black- but with any colour the user picks. This would let people create a "sepia" effect, or keep the reduced eyestrain that tools like Redshift give (but with better saturation, closer to the original image), or just pick their favourite colour because it's fun.
it is not possible to bind this effect, and this is very important to not open system settings every time I need to disable|enable this function
This is awesome -- it wasn't working for me under kwin 5.21.4 until I changed my renderer to OpenGL 3, not OpenGL 2.
The effect is working, but only on the main display.
Effect installed from effects catalog.
KDE 5.76.0
As you can see in the attached video, on enabling the grayscale effect and trying to minimize the settings app, it is leaving an afterimage.
On a side note, it is a much needed effect and I really appreciate the work you have done.
[ Specifications ]
Operating System: EndeavourOS
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.12-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-6700 CPU @ 3.40GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
This version doesn't seem to support KDE6
Here's a working fork for those that are looking: https://github.com/lliurex/kwin-grayscale-effect/tree/master
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.