2024-04-09 00:37:00 +01:00

39 lines
1.4 KiB
YAML

---
- 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='<Shift><Alt>space'
# command='1password --quick-access'
# name='1Password Quick Access'
- binding: <Shift><Alt>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='<Super>space'
# command='guake-toggle'
# name='Guake Toggle'
- binding: <Super>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/']