-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dbus server accepts parsing blur strength and added dbus example #16
base: dual_kawase
Are you sure you want to change the base?
Conversation
Thanks for re-implementing in the dbus interface. But I'm not quite shure how you want to change the parameters without a call to |
Yeah I don't know why I mentioned that actually |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As blur-strength is kept in the global state and applied to all windows, this would be a better fit in the opts_set
category, don't you think? 😉
Oops I forgot to rename that. I was not sure if it had had conflicts with I'm also not sure how to add this to |
There should be a generic handler: Line 1001 in 6dab09d
|
Is that last commit right..? I also wanted to have the possibility to increment/decrement by a factor. |
Looks like you forgot to actually change the copied handler to update the blur-strength like the other one did...
This is a bit more difficult, as there is currently no way to read the numeric blur-strength value back. But this could be stored in the Lines 554 to 559 in 0f86353
Lines 1709 to 1744 in 0f86353
This value should be accessible via a new dbus handler in opts_get . Increment and decrement should then be possible via the dbus interface.
|
043732d
to
05b5f30
Compare
Does this look right? this dbus thing is kinda weird |
I guess it works... 😄 |
https://github.com/mvrozanti/compton/blob/05b5f30795fcb54a690b48e4ea112c82fdf58de5/src/dbus.c#L836 This looks pretty bad though x) |
This one doesn't bloat stuff up and solves #14
I'm still wondering though, can we omit the
parse_blur_strength
call?