Add gsettings module & use it

Disable switch-input-source & switch-input-source-backward keybindings.
This commit is contained in:
2024-07-06 21:02:42 +01:00
parent cbe9b40023
commit 8e0743cbba
2 changed files with 164 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
- assert:
that: "'GNOME' in ansible_env.XDG_CURRENT_DESKTOP"
- name: install gnome extra packages
- name: install packages
become: true
package:
name:
@@ -10,6 +10,23 @@
- gnome-themes-extra
state: latest
- name: prefer dark mode
gsettings:
schema: org.gnome.desktop.interface
key: color-scheme
value: "'prefer-dark'"
- name: disable switch-input-source keybinding
gsettings:
schema: org.gnome.desktop.wm.keybindings
key: switch-input-source
value: '@as []'
- name: disable switch-input-source-backward keybinding
gsettings:
schema: org.gnome.desktop.wm.keybindings
key: switch-input-source-backward
value: '@as []'
# NOTE: Use this command to see default keybindings
# gsettings list-recursively | grep -i -E 'media-keys|keybindings'
# NOTE: Use this command to inspect the current state of the custom keybindings