Commit graph

8 commits

Author SHA1 Message Date
gibbz00
85133395c1 contrib/inactive-windows-transparency: Add --ignore flag
Works as the title suggests. `--ignore firefox vlc gimp` would as an
example completely ignore any opacity modifications to the respective
windows, defaulting to 1.
2022-10-03 15:38:15 +02:00
gibbz00
a5cab2bb5d contrib/inactive-windows-transparency: Add active window opacity
Opacity of active window can now be set with the -a or --active-ocacity
flag. Previous inactive opacity flag (-o) has changed to -i or
--inactive-opacity. Change will break for users using the old flag.
2022-10-03 15:38:15 +02:00
gibbz00
47023befbf contrib/inactive-windows-transparency: Show only one window as focused
Script currently has the ability to show multiple windows as active,
wrongly implying that more than one window can be focused at the same
time. It happens when multiple outputs are configured such that multiple
workspaces can be simultaneously shown. Stemming from a conditional to
only change transparency values if the focus change is done on the same
workspace in which the previous focus change was made. (Introduced in:
6235423544.) Commit is somewhat poor in
that it clumps multiple features into one commit, so it's hard to
understand what problem the author attempted to solve with the
conditional. I, for one, can not see any other reason for adding this
arguably incorrect behavior, as it goes directly against the script's
purpose. As such, it's regarded as a bug and the change will remove the
behavior entirely, not making it an option.
2022-10-03 15:38:15 +02:00
gibbz00
10c697d33a contrib/inactive-windows-transparency: remove all transparencies on exit
Hidden windows in the scratchpad failed to have their transparency
reset upon program exit. This is because they are kept separetly in
`ipc.get_tree.scratchpad()`, and not in `ipc.get_tree.workspaces()`.
2022-10-03 15:38:15 +02:00
Pierre-Albéric TROUPLIN
a3d45c3280 Prevent inactive-windows-transparency.py to crash on lockscreen 2021-02-16 11:45:10 +01:00
JR Boyens
0106dd135c Use transparency arg in the window focus event 2020-01-09 19:53:53 -07:00
Thorben Günther
6235423544 Improve transparency script
Transparency gets reset when the script is terminated.
Added command line option to set transparency strength without changing
the script.
Added support for multiple displays.
2019-12-06 15:52:33 -05:00
Konstantin Kharlamov
0d5aaf5359 A script to make inactive windows transparent
Sway has ability to apply transparency to arbitrary windows. This script
wires up this functional to one of popular use-cases from
i3+<compositor_name>.

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
2018-10-20 21:58:00 +03:00