Files
Cachy-workstation/roles/hotkeys/tasks/main.yml
T

35 lines
1.1 KiB
YAML

---
- name: Ensure applications directory exists
ansible.builtin.file:
path: "{{ ansible_facts['user_dir'] }}/.local/share/applications"
state: directory
mode: "0755"
- name: Copy cheat sheet desktop file
ansible.builtin.template:
src: cheat-sheet.desktop.j2
dest: "{{ ansible_facts['user_dir'] }}/.local/share/applications/net.local.cheat-sheet.sh.desktop"
mode: "0644"
- name: Copy password script
ansible.builtin.template:
src: pass-menu.desktop.j2
dest: "{{ ansible_facts['user_dir'] }}/.local/share/applications/net.local.pass-menu.sh.desktop"
mode: "0644"
- name: Set cheat-sheet hotkey
community.general.ini_file:
path: "{{ ansible_facts['user_dir'] }}/.config/kglobalshortcutsrc"
section: "services][net.local.cheat-sheet.sh.desktop"
option: _launch
value: Alt+C
mode: "0644"
- name: Set pass-menu hotkey
community.general.ini_file:
path: "{{ ansible_facts['user_dir'] }}/.config/kglobalshortcutsrc"
section: "services][net.local.pass-menu.sh.desktop"
option: _launch
value: Alt+P
mode: "0644"