diff --git a/roles/gnome-shell/tasks/main.yaml b/roles/gnome-shell/tasks/main.yaml index 85e836c..4d93881 100644 --- a/roles/gnome-shell/tasks/main.yaml +++ b/roles/gnome-shell/tasks/main.yaml @@ -38,18 +38,28 @@ # 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' -# 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/'] +- name: 1password quick access custom keybinding + dconf: + state: present + key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/{{item.key}}' + value: '{{item.value}}' + with_items: + - {key: 'binding', value: "'space'"} + - {key: 'command', value: "'1password --quick-access'"} + - {key: 'name', value: "'1Password Quick Access'"} -# TODO: 1Password Quick Access -# [org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0] -# binding='space' -# command='1password --quick-access' -# name='1Password Quick Access' -# -# TODO: Ulauncher Toggle -# [org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1] -# binding='space' -# command='ulauncher-toggle' -# name='Ulauncher Toggle' +- name: ulauncher toggle custom keybinding + dconf: + state: present + key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/{{item.key}}' + value: '{{item.value}}' + with_items: + - {key: 'binding', value: "'space'"} + - {key: 'command', value: "'ulauncher-toggle'"} + - {key: 'name', value: "'Ulauncher Toggle'"} + +- name: list of entries defining custom-keybindings + dconf: + state: present + key: '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings' + value: "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/']"