blur-my-shell icon indicating copy to clipboard operation
blur-my-shell copied to clipboard

Command to start application with blur

Open andrewaclear opened this issue 3 years ago • 9 comments
trafficstars

How can we add blur-provider=${sigma-value} to _MUTTER_HINTS as we start an application i.e. is there a terminal command when starting an application? For instance <<something>> gnome-terminal to start the terminal with blur behind it?

andrewaclear avatar Mar 11 '22 17:03 andrewaclear

Same question here. I don't know much about how properties work in X windows but would love to know if there is a way to launch an application with the blur property set.

regexPattern avatar Mar 20 '22 19:03 regexPattern

Hello, to be honest I don't know at all! About this, @CorvetteCole is much better than me :)

If you really want to do this, but is a better way (without needing to change the way you start you app of anything), you can use #180 (branch preferences-rewrite), this will allow you (from gsettings, I explained in the PR how to use it) to select the name of the app you always want to blur.

Ofc, this will be accessible through the extension preferences, hopefully with a nice-looking ui, but for the moment this is all I have :)

aunetx avatar Mar 28 '22 12:03 aunetx

ooh that's a good question. Let me look at the docs and I'll get back to you guys

CorvetteCole avatar Mar 28 '22 12:03 CorvetteCole

thanks guys, but ya @aunetx that's true, what you are saying is even better!

andrewaclear avatar Mar 29 '22 00:03 andrewaclear

after exploring this I haven't found a good solution. I think I will build a small wrapper application that launches the target application with the blurring property set. For example blur-app YOUR_APP_COMMAND

CorvetteCole avatar Apr 13 '22 15:04 CorvetteCole

@CorvetteCole I don't think it would be the best thing to do, as the user can select (with the whitelist, under gnome 42) which app to blur, and using mutter hint should only be used directly by the app itself.

So, once the applications blur selector is really well implemented (and not just the current text line I added in the prefs), the user would only have to touch to the extension preferences to blur the app (s)he wants: hence, the next step is to have a nice window selector, directly in the preferences.

aunetx avatar Apr 13 '22 15:04 aunetx

you're right, it would probably be better to focus on implementing that. The new preferences look great by the way. I'm going to try to help iron out the applications blur implementation and then maybe we can implement my really hacky corner blur workaround (but it works!). I've got a proof of concept I'll put on git soon for feedback

CorvetteCole avatar Apr 13 '22 19:04 CorvetteCole

Thanks a lot guys. Ya I think selecting the apps that we want to be blurred in the settings is much better in the end, don't worry about the command

andrewaclear avatar Apr 16 '22 14:04 andrewaclear

with the whitelist now this command should not be necessary

andrewaclear avatar May 19 '22 22:05 andrewaclear

With #304 this will be selectable from the preferences directly

aunetx avatar Aug 15 '22 11:08 aunetx

Ya this selection is blessed. Absolutely way better than this command idea.

andrewaclear avatar Aug 25 '22 18:08 andrewaclear