ref(playbook): Change to role-based structure
This commit is contained in:
parent
95fd68bed8
commit
b3b280fbe4
39 changed files with 635 additions and 601 deletions
41
roles/keyd/files/default.conf
Normal file
41
roles/keyd/files/default.conf
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# Makes capslock to control/escape
|
||||
# insert to paste
|
||||
# right alt to enable German Umlaute (äÄöÖüÜ),
|
||||
# sharp s (ß), and the Euro sign (€).
|
||||
# Needs compose key to be set in xkb to work correctly:
|
||||
# $ setxkbmap -option "compose:menu"
|
||||
|
||||
[ids]
|
||||
|
||||
*
|
||||
|
||||
[main]
|
||||
|
||||
capslock = overload(control, esc)
|
||||
insert = S-insert
|
||||
rightalt = layer(dia)
|
||||
shift = layer(shift)
|
||||
rightshift = layer(shift)
|
||||
|
||||
[shift:S]
|
||||
|
||||
rightalt = layer(shiftedDia)
|
||||
|
||||
[dia]
|
||||
|
||||
shift = layer(shiftedDia)
|
||||
rightshift = layer(shiftedDia)
|
||||
|
||||
a = macro(compose a ")
|
||||
o = macro(compose o ")
|
||||
u = macro(compose u ")
|
||||
s = macro(compose s s)
|
||||
e = macro(compose = e)
|
||||
|
||||
[shiftedDia]
|
||||
|
||||
a = macro(compose A ")
|
||||
o = macro(compose O ")
|
||||
u = macro(compose U ")
|
||||
s = macro(compose S S)
|
||||
e = macro(compose l -)
|
||||
22
roles/keyd/tasks/main.yaml
Normal file
22
roles/keyd/tasks/main.yaml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
- name: Install keyd
|
||||
community.general.xbps:
|
||||
name:
|
||||
- keyd
|
||||
state: "{{ desired_package_state }}"
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: Set up keyd umlaut configuration
|
||||
ansible.builtin.copy:
|
||||
src: default.conf
|
||||
dest: "/etc/keyd/default.conf"
|
||||
force: yes
|
||||
|
||||
- name: Activate keyd service
|
||||
ansible.builtin.file:
|
||||
src: "/etc/sv/keyd"
|
||||
dest: "/etc/runit/runsvdir/default/keyd"
|
||||
state: link
|
||||
force: true
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue