Added draft for desk-copyq (untested)

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-19 17:02:25 +02:00
parent 45d9da3125
commit 1b9775ccb5
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
4 changed files with 91 additions and 0 deletions

View File

@ -0,0 +1,36 @@
# CopyQ Role for Ansible
## Overview
This role installs the CopyQ clipboard manager on Pacman-based systems (e.g. Arch Linux) and ensures it is started automatically for the current user.
## Requirements
- Ansible 2.9 or higher
- Pacman package manager (Arch Linux or derivative)
- X11/Wayland desktop environment (for GUI)
## Role Variables
No additional role variables are required.
## Dependencies
No external dependencies.
## Example Playbook
```yaml
- hosts: all
roles:
- desk-copyq
```
## Further Resources
- [CopyQ official site](https://hluk.github.io/CopyQ/)
- [Arch Wiki: Clipboard](https://wiki.archlinux.org/title/Clipboard)
## Contributing
Contributions are welcome. Please follow best practices.
## Other Resources
This role was created as part of a larger playbook. For more context on this role, you can refer to the related ChatGPT conversation [here](https://chat.openai.com/share/ae168ca0-5191-4bec-96a0-ffcfabca0024).

View File

@ -0,0 +1,27 @@
---
galaxy_info:
author: "Kevin Veen-Birchenbach"
description: "Installs CopyQ clipboard manager on Pacman-based systems and configures autostart for the current user."
license: "CyMaIS NonCommercial License (CNCL)"
license_url: "https://s.veen.world/cncl"
company: |
Kevin Veen-Birchenbach
Consulting & Coaching Solutions
https://www.veen.world
galaxy_tags:
- copyq
- clipboard
- manager
- gui
- cli
logo:
class: fa fa-clipboard
repository: "https://github.com/kevinveenbirkenbach/cymais"
issue_tracker_url: "https://github.com/kevinveenbirkenbach/cymais/issues"
documentation: "https://github.com/kevinveenbirkenbach/cymais/tree/main/roles/desk-copyq"
min_ansible_version: "2.9"
platforms:
- name: Archlinux
versions:
- all
dependencies: []

View File

@ -0,0 +1,27 @@
- name: Install CopyQ clipboard manager
community.general.pacman:
name:
- copyq
state: present
- name: Ensure autostart directory exists
file:
path: "{{ ansible_env.HOME }}/.config/autostart"
state: directory
mode: '0755'
become: false
- name: Add CopyQ to user autostart
copy:
dest: "{{ ansible_env.HOME }}/.config/autostart/copyq.desktop"
content: |
[Desktop Entry]
Type=Application
Exec=copyq
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=CopyQ Clipboard Manager
Comment=Advanced clipboard manager with searchable and editable history
mode: '0644'
become: false

View File

@ -0,0 +1 @@
application_id: desk-copyq