Compare commits

...

2 Commits

Author SHA1 Message Date
Markus Volk
750176df38 nwg-dock-hyprland: adjust systemd service 2024-10-30 11:35:37 +01:00
Markus Volk
9786712812 waybar: adjust systemd service 2024-10-30 11:34:58 +01:00
2 changed files with 17 additions and 15 deletions

View File

@ -31,19 +31,18 @@ do_install:append() {
cp -rf ${S}/src/${GO_IMPORT}/images ${D}${datadir}/nwg-dock-hyprland
cat >${D}${systemd_user_unitdir}/nwg-dock-hyprland.service <<EOF
[Unit]
Description=nwg-dock-hyprland
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
[Service]
LockPersonality=yes
MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
RestrictNamespaces=yes
Type=simple
ExecStart= /usr/bin/nwg-dock-hyprland -mb 6 -d -hd 2000
ExecStartPre=systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XAUTHORITY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP
ExecStart=nwg-dock-hyprland -d -hd 2000
Restart=on-failure
[Install]
WantedBy=graphical-session.target
EOF
}

View File

@ -1,11 +1,14 @@
[Unit]
Description=Highly customizable Wayland bar for Sway and Wlroots based compositors.
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
[Service]
ExecStart=/usr/bin/waybar
ExecReload=kill -SIGUSR2 $MAINPID
Type=simple
ExecStartPre=systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XAUTHORITY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP
ExecStart=waybar
Restart=on-failure
[Install]
WantedBy=graphical-session.target