Skip to content
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

Add transparency on move - same way as compiz does, #2183

Open
mark-herbert42 opened this issue Mar 6, 2024 · 4 comments
Open

Add transparency on move - same way as compiz does, #2183

mark-herbert42 opened this issue Mar 6, 2024 · 4 comments
Labels
enhancement external-feature Plugins and features which are intended to not be part of the main wayfire repository

Comments

@mark-herbert42
Copy link

For me this feature looks pretty usable - first looks of it, second - easy workaround to look through top window by just initiatiating moving it with mouse ( no need for exytra keyboard modifiers and manual transparency control as alpha plugins does.)

made a patch for it (applies on 0.8 and git). The only point - added initial alpha into object properties to handle the case when the window that is moved already has transparency set - so at the end of move it will restore to initial level. Storing one number seems to be more efficient than doing calclulations and keeping value in plugin itself/

alpha08.patch.gz

@ammen99
Copy link
Member

ammen99 commented Mar 6, 2024

I think this should actually be doable quite easily with an ipc script, the only thing is we may want to have a way to get the current alpha for a view so that it can be restored later.

@mark-herbert42
Copy link
Author

IPC scripts are good on a desktop or on AC power. So I believe IPC script is a very nice tool to automate some exotic tasks , but routine operations better to move inside the executable. Python is a terrible slow resource eater - and make every single mouse click to trigger several python instances to fire up and eat your CPU , RAM and battery looks like a waste. As I read wayfire is becoming also popular in small one-board pc's like raspberry, and also old or not so powerful laptops. Compiz was not just a fancy feature-rich thing - it also was able to run on very limited hardware consuming less resources than script-based monsters (gnome 3 shell )

Scripts looks like perfect tool when there is a need to pass some data to wayfire from external program of vise versa.

@ammen99
Copy link
Member

ammen99 commented Mar 6, 2024

I think you highly overestimate the cost of such a script ;) at some point I'll add the requests necessary and give you a demo script, you can then check for yourself whether it is too CPU intensive or not.

@ammen99
Copy link
Member

ammen99 commented Mar 6, 2024

Also actually you can very easily do a small C++ plugin which adjusts the alpha, there is no need to add it to the existing plugins :)

Recently we added signals for detecting when a plugin is activated or deactivated, so you could listen for these signals and adjust the opacity without patching any of the existing plugins (this is what the IPC script would have done as well)

@ammen99 ammen99 added the external-feature Plugins and features which are intended to not be part of the main wayfire repository label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement external-feature Plugins and features which are intended to not be part of the main wayfire repository
Projects
None yet
Development

No branches or pull requests

2 participants