Finally configure gnome custom keybindings

This commit is contained in:
Kenneth Benzie 2024-07-06 23:04:04 +01:00
parent 30e2a123c0
commit 1965529cb6

View File

@ -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: "'<Shift><Alt>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='<Shift><Alt>space'
# command='1password --quick-access'
# name='1Password Quick Access'
#
# TODO: Ulauncher Toggle
# [org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1]
# binding='<Alt>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: "'<Alt>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/']"