mirror of
https://codeberg.org/flk/meta-wayland.git
synced 2024-12-25 13:08:21 +01:00
adjust service files
This commit is contained in:
parent
fe9c4b6c7b
commit
2629661a5d
@ -32,17 +32,18 @@ do_install:append() {
|
||||
cat >${D}${systemd_user_unitdir}/nwg-dock-hyprland.service <<EOF
|
||||
[Unit]
|
||||
Description=Nwg Dock Hyprland - gtk3 based dock for Hyprland, written in go
|
||||
BindsTo=graphical-session.target
|
||||
Before=graphical-session.target
|
||||
Wants=xdg-desktop-autostart.target
|
||||
Wants=graphical-session-pre.target
|
||||
After=graphical-session-pre.target
|
||||
PartOf=graphical-session.target
|
||||
After=graphical-session.target
|
||||
ConditionEnvironment=WAYLAND_DISPLAY
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XAUTHORITY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP
|
||||
ExecStart=nwg-dock-hyprland -d -hd 2000
|
||||
Slice=session.slice
|
||||
TimeoutStopSec=5sec
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
EOF
|
||||
}
|
||||
|
||||
|
@ -1,14 +1,15 @@
|
||||
[Unit]
|
||||
Description=Highly customizable Wayland bar
|
||||
Documentation=https://github.com/Alexays/Waybar/wiki/
|
||||
BindsTo=graphical-session.target
|
||||
Before=graphical-session.target
|
||||
Wants=xdg-desktop-autostart.target
|
||||
Wants=graphical-session-pre.target
|
||||
After=graphical-session-pre.target
|
||||
PartOf=graphical-session.target
|
||||
After=graphical-session.target
|
||||
ConditionEnvironment=WAYLAND_DISPLAY
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XAUTHORITY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP
|
||||
ExecStart=waybar
|
||||
Slice=session.slice
|
||||
TimeoutStopSec=5sec
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
|
Loading…
Reference in New Issue
Block a user