add unclutter
This commit is contained in:
parent
5f192240f2
commit
7dafc80dbe
2 changed files with 23 additions and 4 deletions
|
@ -60,6 +60,12 @@
|
|||
dest: "/home/{{ ansible_user }}/.config/systemd/user/parsifal.service"
|
||||
state: link
|
||||
|
||||
- name: Symlink unclutter.service to systemd user directory
|
||||
file:
|
||||
src: "/home/{{ ansible_user }}/parsifal/unclutter.service"
|
||||
dest: "/home/{{ ansible_user }}/.config/systemd/user/unclutter.service"
|
||||
state: link
|
||||
|
||||
- name: Reload systemd for the current user
|
||||
command: systemctl --user daemon-reload
|
||||
become: yes
|
||||
|
@ -67,13 +73,16 @@
|
|||
environment:
|
||||
XDG_RUNTIME_DIR: "/run/user/{{ ansible_user_uid }}" # Needed for running systemctl --user
|
||||
|
||||
- name: Enable and start the systemd user service (as user)
|
||||
- name: Enable and start the Parsifal service
|
||||
command: systemctl --user enable --now parsifal
|
||||
become: yes
|
||||
become_user: "{{ ansible_user }}"
|
||||
environment:
|
||||
XDG_RUNTIME_DIR: "/run/user/{{ ansible_user_uid }}" # Needed for running systemctl --user
|
||||
|
||||
|
||||
# - name: Reload systemd for the current user
|
||||
# command: loginctl enable-linger {{ ansible_user }}
|
||||
- name: Enable and start the Unclutter service
|
||||
command: systemctl --user enable --now unclutter
|
||||
become: yes
|
||||
become_user: "{{ ansible_user }}"
|
||||
environment:
|
||||
XDG_RUNTIME_DIR: "/run/user/{{ ansible_user_uid }}" # Needed for running systemctl --user
|
||||
|
|
10
unclutter.service
Normal file
10
unclutter.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Unclutter
|
||||
After=graphical.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/unclutter -idle 1 -root
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Reference in a new issue