--- - assert: that: "'GNOME' in ansible_env.XDG_CURRENT_DESKTOP" - name: install gnome-tweaks become: true package: name: gnome-tweaks state: latest # 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 # dconf dump / | sed -n '/\[org.gnome.settings-daemon.plugins.media-keys/,/^$/p' - set_fact: custom_keybindings: # TODO: 1Password Quick Access # [org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0] # binding='space' # command='1password --quick-access' # name='1Password Quick Access' - binding: space command: 1password --quick-access name: 1Password Quick Access # TODO: Guake toggle - this requires removing a default binding # [org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1] # binding='space' # command='guake-toggle' # name='Guake Toggle' - binding: space command: guake-toggle name: Guake Toggle # TODO: List of custom-keybindings # [org/gnome/settings-daemon/plugins/media-keys] # custom-keybindings=['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/']