mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-29 03:42:46 +01:00
feat(wm): transparency for the windows without the focus
The window in front of every container is see-through, unless its container has the focus on the focused monitor, so that the window being worked in stands out. The opacity of a window is a property KWin has: komorebi sets it through the bridge, as a fraction of 255, and KWin draws the window so. The window manager keeps the opacity it gave each window and, after every event and message, sends only the difference, makes a window opaque again when it should no longer be see-through, and makes every one opaque when it stops. Windows an ignore rule covers, and workspaces that do not tile, are left as they are. The patched border effect already draws a window again when its opacity changes, so the border follows it. komorebic gets transparency, transparency-alpha and toggle-transparency, and the state of the daemon says what the settings are. vm-features checks the pixels in the middle of a focused window and of one that is not. A monocled window is opaque on the focused monitor and see-through on another. komorebi.json takes transparency, transparency_alpha and transparency_ignore_rules.
This commit is contained in:
1 parent
abfa8c6a5c
commit
fa1e822e44
36 files changed
+974
-30
No files matched your search
@@ -345,6 +345,10 @@ What the KWin scripting API offers a script, and what it does not, at time of wr
|
||||
uses, which `tsc` checks it against with ECMAScript 2016's library and nothing else. Node and
|
||||
TypeScript are needed only for those checks: in the session the bridge needs KWin alone.
|
||||
|
||||
- A window's `opacity` is a number from 0 to 1 that a script may set: `Window.opacity` is KWin's
|
||||
own property, so komorebi sets the opacity of a window by setting it, and the effect that
|
||||
draws the border has to draw the window again when it changes
|
||||
([The patches](#the-patches)).
|
||||
- `callDBus` sends a JavaScript number as a 32-bit integer, and a call whose arguments do not
|
||||
match the method's signature fails without a word. The bridge sends every argument as a
|
||||
JSON string.
|
||||
|
||||
Reference in new issue
Block a user