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"
|
dest: "/home/{{ ansible_user }}/.config/systemd/user/parsifal.service"
|
||||||
state: link
|
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
|
- name: Reload systemd for the current user
|
||||||
command: systemctl --user daemon-reload
|
command: systemctl --user daemon-reload
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -67,13 +73,16 @@
|
||||||
environment:
|
environment:
|
||||||
XDG_RUNTIME_DIR: "/run/user/{{ ansible_user_uid }}" # Needed for running systemctl --user
|
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
|
command: systemctl --user enable --now parsifal
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ ansible_user }}"
|
become_user: "{{ ansible_user }}"
|
||||||
environment:
|
environment:
|
||||||
XDG_RUNTIME_DIR: "/run/user/{{ ansible_user_uid }}" # Needed for running systemctl --user
|
XDG_RUNTIME_DIR: "/run/user/{{ ansible_user_uid }}" # Needed for running systemctl --user
|
||||||
|
|
||||||
|
- name: Enable and start the Unclutter service
|
||||||
# - name: Reload systemd for the current user
|
command: systemctl --user enable --now unclutter
|
||||||
# command: loginctl enable-linger {{ ansible_user }}
|
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