mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
rofi greenclip as clipboard manager
This commit is contained in:
parent
51a787ae3d
commit
eb23d59f24
2 changed files with 35 additions and 0 deletions
12
roles/clipboard/files/greenclip.service
Normal file
12
roles/clipboard/files/greenclip.service
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Start greenclip daemon
|
||||
After=display-manager.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/greenclip daemon
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
23
roles/clipboard/tasks/main.yml
Normal file
23
roles/clipboard/tasks/main.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
- name: install greenclip from AUR
|
||||
aur: name='rofi-greenclip' user={{ user.name }}
|
||||
tags:
|
||||
- clipboard
|
||||
- name: copy greenclip.service
|
||||
copy: src=greenclip.service dest=/etc/systemd/user/greenclip.service
|
||||
tags:
|
||||
- clipboard
|
||||
- name: Enable greenclip.service
|
||||
command: 'systemctl --user enable greenclip.service'
|
||||
become: true
|
||||
become_method: su
|
||||
become_user: "{{ user.name }}"
|
||||
tags:
|
||||
- clipboard
|
||||
- name: Start greenclip.service
|
||||
command: 'systemctl --user start greenclip.service'
|
||||
become: true
|
||||
become_method: su
|
||||
become_user: "{{ user.name }}"
|
||||
tags:
|
||||
- clipboard
|
||||
Loading…
Add table
Add a link
Reference in a new issue