added hotkeys role

This commit is contained in:
2026-06-20 06:17:34 -05:00
parent c6b33e4182
commit e5a0e961d5
7 changed files with 73 additions and 0 deletions
+6
View File
@@ -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"
+28
View File
@@ -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
+6
View File
@@ -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"
+13
View File
@@ -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
+6
View File
@@ -17,3 +17,9 @@
tags: web
- role: flatpak
tags: flatpak
- role: dotfiles
tags: dotfiles
- role: scripts
tags: scripts
- role: hotkeys
tags: hotkeys