Hello once again,
I am trying to configure some kwin shortcuts. Specifically,
- name: "Kde | Global shortcut to toggle window decorations"
community.general.kdeconfig:
path: "{{ ansible_env.HOME }}/.config/kglobalshortcutsrc"
values:
- group: kwin
key: Window No Border
value: Meta+B,,Toggle Window Titlebar and Frame
- group: kwin
key: Window Fullscreen
value: Meta+F,,Make Window Fullscreen
This makes the change in kglobalshortcutsrc exactly the same as if I used system settings.
However, they do not apply:
Also, the script also runs
systemctl --user restart plasma-kglobalaccel.service
and the changes are lost.
I went searching for the web and found discussion: Plasma 6 method to refresh kglobalaccel shortcuts? - #8 by RedBearAK
And made some attempts like
kwriteconfig6 --file kglobalshortcutsrc --group kwin --key "Window No Border" "Meta+B,,Toggle Window Titlebar and Frame" --notify
And
gdbus call --session \ took 15ms 14:18
--dest org.kde.kglobalaccel \
--object-path /kglobalaccel \
--method org.kde.KGlobalAccel.setShortcutKeys \
"['kwin', 'Window No Border', 'KWin', 'Toggle Window Titlebar and Frame']" \
"[([$'0x08000041', 0, 0, 0],)]" \
4
But no luck. I am clearly not understanding how this works.
Thank you. Any help is appreciated =))

