Namdrib / ansible-desktop

Ansible setup for my desktop(s)
MIT License
0 stars 0 forks source link

configure KDE settings #2

Closed Namdrib closed 1 year ago

Namdrib commented 1 year ago

Starting point here: https://forum.kde.org/viewtopic.php?t=151477

Namdrib commented 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

Namdrib commented 1 year ago

See here for examples for other configs: https://github.com/linuxdeepin/dde-kwin/tree/master/configures

Namdrib commented 1 year ago

Changing the ini files directly seems to work fine for now. Two alternatives for the future:

  1. 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

namdrib @ triple-coaster in ~ [21:18:12]

$ 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