added hotkeys role
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
---
|
||||
galaxy_info:
|
||||
author: cjr
|
||||
description: Deploy script desktop files and configure Plasma global hotkeys
|
||||
license: BSD-3-Clause
|
||||
min_ansible_version: "2.1"
|
||||
@@ -0,0 +1,28 @@
|
||||
---
|
||||
- name: Copy cheat sheet desktop file
|
||||
ansible.builtin.template:
|
||||
src: cheat-sheet.desktop.j2
|
||||
dest: "{{ ansible_user_home }}/.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_user_home }}/.local/share/applications/net.local.pass-menu.sh.desktop"
|
||||
mode: "0644"
|
||||
|
||||
- name: Set cheat-sheet hotkey
|
||||
community.general.ini_file:
|
||||
path: "{{ ansible_user_home }}/.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_user_home }}/.config/kglobalshortcutsrc"
|
||||
section: "services][net.local.pass-menu.sh.desktop"
|
||||
option: _launch
|
||||
value: Alt+P
|
||||
mode: "0644"
|
||||
@@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Exec={{ ansible_user_home }}/scripts/cheat-sheet.sh
|
||||
Name=cheat-sheet
|
||||
NoDisplay=true
|
||||
StartupNotify=false
|
||||
Type=Application
|
||||
X-KDE-GlobalAccel-CommandShortcut=true
|
||||
@@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Exec={{ ansible_user_home }}/scripts/pass-menu.sh
|
||||
Name=pass-menu
|
||||
NoDisplay=true
|
||||
StartupNotify=false
|
||||
Type=Application
|
||||
X-KDE-GlobalAccel-CommandShortcut=true
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
galaxy_info:
|
||||
author: cjr
|
||||
description: Clone scripts repo and add to PATH
|
||||
license: BSD-3-Clause
|
||||
min_ansible_version: "2.1"
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
- name: Clone the scripts repo
|
||||
ansible.builtin.git:
|
||||
repo: https://gitea.learningunix.net/cjr/scripts
|
||||
dest: "{{ ansible_user_home }}/scripts"
|
||||
update: true
|
||||
version: main
|
||||
|
||||
- name: Ensure that scripts is in the user's path
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ ansible_user_home }}/dotfiles/zsh/.zshrc"
|
||||
line: 'export PATH="$HOME/scripts:$PATH"'
|
||||
state: present
|
||||
Reference in New Issue
Block a user