Closed Namdrib closed 1 year ago
Looks like the contents of (at least some) the files are ini: https://github.com/samwhelp/biglinux-adjustment/blob/main/prototype/keybind/kdebiglinux/modern/kglobalshortcutsrc which ansible can manage: https://docs.ansible.com/ansible/latest/collections/community/general/ini_file_module.html
See here for examples for other configs: https://github.com/linuxdeepin/dde-kwin/tree/master/configures
Changing the ini files directly seems to work fine for now. Two alternatives for the future:
kwriteconfig5
# namdrib @ triple-coaster in ~ [21:18:09]
$ kreadconfig5 --file kglobalshortcutsrc --group kwin --key 'Switch One Desktop to the Right'
Meta+Ctrl+Right,Meta+Ctrl+Right,Switch One Desktop to the Right
$ kwriteconfig5 --file kglobalshortcutsrc --group kwin --key 'Switch One Desktop to the Right' 'Meta+Ctrl+Right,Meta+Ctrl+Right,Switch One Desktop to the Right'
2. [ansible-kconfig](https://github.com/RealOrangeOne/ansible-kconfig) role
Starting point here: https://forum.kde.org/viewtopic.php?t=151477