Replies: 3 comments 1 reply
-
|
script is very hard to read with those fuckin comments but as far as I can see what you are doing is
setprop doesnt change global, so you'll always have the same |
Beta Was this translation helpful? Give feedback.
-
|
@vaxerski! Thank you for taking the time to read my script and provide feedback. I took an axe to it and re-wrote it from scratch. I have since made quite a bit of progress but I am not quite where I want to be. You said:
I only partially understand. I do not want to change the global property values of all windows. Perhaps you could elaborate a litle bit further? In my new script below, I setprop the active window to, say, 0.8 and my task is for that same window to retain its opacity prop 0.8 when I navigate to the next window. That's what I am trying to do however instead when I navigate to the next window, the previous window opacity goes from 0.8 back to 1.0. Any potential direction on how to better have windows retain the alpha props when navigating away based on my latest script would be great. My new script has fewer comments but with the limitation of this GitHub discussion board there is no inline syntax highlighting which makes code difficult to read. To this end I have set up a repo tracking my changes and progress. You can view my latest attempt at this location here which includes syntax highlighting for readability. For what it is worth, here it is too: |
Beta Was this translation helpful? Give feedback.
-
Eureka! Thank you very much @vaxerski! This works perfectly. For what it is worth, for my future reference or for anyone else that may stumble upon this thread and may be curious to learn about my working end product, here is the final iteration of my script: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings!
I am trying to write a script for Hyprland to increase and decrease the opacity of a focused window. When I trigger the key combination of
SUPER_SHIFT+ P`, I am expecting Hyprland to decrement the opacity by 10% but instead nothing happens. Sway has this feature out of box and I don't see a similar way to do this with Hyprland. The official Hyprland docs are exhaustive and go into great detail about how to play with opacity, but I don't see a way to bind a key combination to increase/decrease opacity values as easily and straightforward as Sway. To this end I have a bash script where I attempt to emulate this feature.Below you can find (and in this order):
Here are the bindings inside my hyprland.conf:
My latest opacity.sh:
Here is the log file:
Beta Was this translation helpful? Give feedback.
All reactions