murat-cileli / kwin-grayscale-effect

KWin Grayscale Effect
38 stars 10 forks source link

bind is not possible #2

Open fedorovenskiy opened 5 years ago

fedorovenskiy commented 5 years ago

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

RokeJulianLockhart commented 2 years ago

https://github.com/murat-cileli/kwin-grayscale-effect/issues/2#issue-490497040

@fedorovenskiy, what does binding refer to in this context?

gearcoded commented 2 years ago

@BEEDELLROKEJULIANLOCKHART, I suppose it means that you can login, and the effect will be active right from the start. But I don't yet know how to do that.

RomanMunar commented 1 year ago

here's a solution If what you mean by bind is a way to toggle the effect through a keyboard shortcut. i'm on kde 5.27.5. the terminal command for toggling it. qdbus org.kde.KWin.Effect.WindowView1 /Effects org.kde.kwin.Effects.toggleEffect kwin4_effect_grayscale

  1. Go here and click Command/url Screenshot_20230716_185209
  2. Copy qdbus org.kde.KWin.Effect.WindowView1 /Effects org.kde.kwin.Effects.toggleEffect kwin4_effect_grayscale in the Action tab and on the Trigger tab add your shortcut key.
kaBeech commented 8 months ago

here's a solution

I was looking for this answer in theory, but that command returned Cannot find 'org.kde.kwin.Effects.toggleEffect' in object /Effects at org.kde.KWin.Effect.WindowView1 for me.

Here's what worked for me:

Thank you to @RomanMunar and to iceman7789 from the comments at the KDE Store for helping me get to a solution that worked with my setup!

RomanMunar commented 8 months ago

Yeah would add that I had installed mine manually(instruction on README) and not from the KDE store 👍️

kaBeech commented 8 months ago

Yeah would add that I had installed mine manually(instruction on README) and not from the KDE store 👍️

Oh yeah, me too. I only found out that it was on the KDE Store when I was searching for shortcut solutions. I think it should work either way though.