mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-04 12:18:17 +00:00 
			
		
		
		
	Added draft for desk-copyq (untested)
This commit is contained in:
		
							
								
								
									
										36
									
								
								roles/desk-copyq/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								roles/desk-copyq/README.md
									
									
									
									
									
										Normal 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).
 | 
			
		||||
							
								
								
									
										27
									
								
								roles/desk-copyq/meta/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								roles/desk-copyq/meta/main.yml
									
									
									
									
									
										Normal 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: []
 | 
			
		||||
							
								
								
									
										27
									
								
								roles/desk-copyq/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								roles/desk-copyq/tasks/main.yml
									
									
									
									
									
										Normal 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
 | 
			
		||||
							
								
								
									
										1
									
								
								roles/desk-copyq/vars/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								roles/desk-copyq/vars/main.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
application_id: desk-copyq
 | 
			
		||||
		Reference in New Issue
	
	Block a user