Add waybar service
This commit is contained in:
parent
134fef3e05
commit
11cd572486
2 changed files with 18 additions and 1 deletions
14
files/config/systemd/user/waybar.service
Normal file
14
files/config/systemd/user/waybar.service
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Highly customizable Wayland bar for Sway and Wlroots based compositors.
|
||||||
|
Documentation=https://github.com/Alexays/Waybar/wiki/
|
||||||
|
PartOf=graphical-session.target
|
||||||
|
After=graphical-session.target
|
||||||
|
Requisite=sway-session.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/waybar
|
||||||
|
ExecReload=kill -SIGUSR2 $MAINPID
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sway-session.target
|
|
@ -115,8 +115,11 @@
|
||||||
|
|
||||||
- name: Activate Import Gsettings service
|
- name: Activate Import Gsettings service
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: 'import-gsettings.service'
|
name: '{{ item }}'
|
||||||
scope: user
|
scope: user
|
||||||
state: started
|
state: started
|
||||||
|
loop:
|
||||||
|
- import-gsettings.service
|
||||||
|
- waybar.service
|
||||||
|
|
||||||
when: service_file is changed and not ansible_check_mode
|
when: service_file is changed and not ansible_check_mode
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue