feat: add keyd setup
This commit is contained in:
parent
7a5da023ac
commit
d26137b908
3 changed files with 43 additions and 0 deletions
9
ansible/low_level_desktop_workstation.yaml
Normal file
9
ansible/low_level_desktop_workstation.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Desktop workstation playbook
|
||||||
|
- hosts: workstation
|
||||||
|
gather_facts: True
|
||||||
|
vars:
|
||||||
|
home: /home/{{ user }}
|
||||||
|
tasks:
|
||||||
|
- name: Configure low-level keyboard device
|
||||||
|
include_role:
|
||||||
|
name: keyboard
|
||||||
8
ansible/roles/keyboard/files/keyd_default.conf
Normal file
8
ansible/roles/keyboard/files/keyd_default.conf
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
[ids]
|
||||||
|
*
|
||||||
|
|
||||||
|
[main]
|
||||||
|
capslock = esc
|
||||||
|
# Ascii grave back tick and Ascii tilde
|
||||||
|
esc = grave
|
||||||
|
|
||||||
26
ansible/roles/keyboard/tasks/main.yaml
Normal file
26
ansible/roles/keyboard/tasks/main.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
# install and configure keyd
|
||||||
|
# (low-level key remapping daemon for linux)
|
||||||
|
- name: Install keyd package
|
||||||
|
become: true
|
||||||
|
community.general.pacman:
|
||||||
|
name: keyd
|
||||||
|
|
||||||
|
- name: Create keyd config dir
|
||||||
|
become: true
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /etc/keyd
|
||||||
|
state: directory
|
||||||
|
recurse: false
|
||||||
|
|
||||||
|
- name: Copy keyd config
|
||||||
|
become: true
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: keyd_default.conf
|
||||||
|
dest: /etc/keyd/default.conf
|
||||||
|
|
||||||
|
- name: Enable systemd service
|
||||||
|
become: true
|
||||||
|
ansible.builtin.systemd_service:
|
||||||
|
name: "keyd"
|
||||||
|
state: "started"
|
||||||
|
enabled: true
|
||||||
Loading…
Add table
Add a link
Reference in a new issue