diff options
Diffstat (limited to 'deckit/modules')
| -rw-r--r-- | deckit/modules/windows.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/deckit/modules/windows.py b/deckit/modules/windows.py index a15f44c..edca5b5 100644 --- a/deckit/modules/windows.py +++ b/deckit/modules/windows.py @@ -157,6 +157,7 @@ def make(cfg: dict) -> Module: apps = [str(a) for a in cfg.get("launch", {}).get("apps", [])] workspaces = cfg.get("windows", {}).get("workspaces", list(range(1, 11))) ws_icons = workspace_icons(cfg.get("windows", {}).get("workspace_icons", "")) + peek = max(0, int(cfg.get("windows", {}).get("peek", 8))) entries = _desktop_entries() icons = _desktop_icons(entries) shot = cfg.get("shot", _shot) @@ -208,7 +209,7 @@ def make(cfg: dict) -> Module: known = sorted(set(int(n) for n in workspaces) | set(st["workspaces"])) launches = [{"key": a, "icon": entries[a]["icon"], "label": entries[a]["name"] or a} for a in apps if a in entries] - return {**st, "workspaces": known, "launches": launches, + return {**st, "workspaces": known, "launches": launches, "peek": peek, "wsIcons": {str(n): ws_icons[n] for n in known if n in ws_icons}} def image(key): |
