Created
June 15, 2020 15:30
-
-
Save jamesmcdonald/e1d3fcb160cbd3a5aaf266935a1ef50d to your computer and use it in GitHub Desktop.
Ansible keybindings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Set keybindings variable | |
tags: | |
- gnome | |
set_fact: | |
keybindings: | |
- name: binding | |
value: "'<Super>p'" | |
- name: command | |
value: "'passmenu'" | |
- name: name | |
value: "'Pop up awesome Pass menu'" | |
- name: binding | |
value: "'<Super>Return'" | |
- name: command | |
value: "'x-terminal-emulator'" | |
- name: name | |
value: "'Open a Terminal'" | |
- name: binding | |
value: "'<Super>t'" | |
- name: command | |
value: "'bash -c \"rofi -dmenu -p Todo -lines 0 -separator-style none | todoist-add.py\"'" | |
- name: name | |
value: "'Quickly add an entry to Todoist'" | |
- name: binding | |
value: "'<Ctrl><Alt>b'" | |
- name: command | |
value: "'x-www-browser'" | |
- name: name | |
value: "'Open a browser'" | |
- name: Custom keybindings | |
tags: | |
- gnome | |
dconf: | |
key: /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings | |
value: "[{% for x in range(keybindings | length // 3) %}'/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom{{ x }}/'{% if not loop.last %},{% endif %}{% endfor %}]" | |
- name: Keybindings | |
tags: | |
- gnome | |
dconf: | |
key: /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom{{ index//3 }}/{{ item.name }} | |
value: "{{ item.value }}" | |
loop: "{{ keybindings }}" | |
loop_control: | |
index_var: index |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment