blob: bcd91a70e5d67f8ffc3e1407001d395e40440796 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
post_install() {
cat <<'EOF'
==> kwin-focus-helper installed (system-wide)
This package installs the KWin script to:
/usr/share/kwin/scripts/kwin-focus-helper
Per-user configuration is stored in:
~/.config/kwinrc
Next steps (per user):
1) Enable it in KDE System Settings:
System Settings -> Window Management -> KWin Scripts -> enable "KWin Focus Helper"
2) Or enable via CLI:
kwriteconfig6 --file kwinrc --group Plugins --key kwin-focus-helperEnabled true
3) Reload KWin config:
qdbus6 org.kde.KWin /KWin reconfigure
Configure allowed window classes:
focusctl add-class google-chrome
focusctl add-class chromium
focusctl list-classes
focusctl list-keys
Integration helper (one-liner wrappers):
focusctl wrap ProcletChrome -- <command...>
focusctl wrap --auto -- <command...>
# Example:
focusctl wrap ProcletChrome -- google-chrome-stable
Wayland note:
Some apps expose *.desktop (e.g. chromium.desktop). Matching normalizes this.
EOF
}
post_upgrade() {
post_install
}
|