Move waybar to a systemd service
This commit is contained in:
@@ -3,9 +3,6 @@
|
|||||||
$polkit = /usr/libexec/kf6/polkit-kde-authentication-agent-1
|
$polkit = /usr/libexec/kf6/polkit-kde-authentication-agent-1
|
||||||
#$kwalletInit = exec --no-startup-id /usr/lib/pam_kwallet_init
|
#$kwalletInit = exec --no-startup-id /usr/lib/pam_kwallet_init
|
||||||
|
|
||||||
# menu bar
|
|
||||||
exec-once = /usr/bin/waybar
|
|
||||||
|
|
||||||
# hyprpaper
|
# hyprpaper
|
||||||
# exec-once = hyprpaper
|
# exec-once = hyprpaper
|
||||||
|
|
||||||
|
20
files/systemd/user/waybar.service
Normal file
20
files/systemd/user/waybar.service
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Highly customizable Wayland bar for Sway and Wlroots based compositors.
|
||||||
|
Documentation=man:waybar(5)
|
||||||
|
# order startup after WM
|
||||||
|
After=graphical-session.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=exec
|
||||||
|
# Repurpose XDG Autostart filtering
|
||||||
|
ExecCondition=/lib/systemd/systemd-xdg-autostart-condition "wlroots:sway:Wayfire:labwc:Hyprland" ""
|
||||||
|
ExecStart=/usr/bin/waybar
|
||||||
|
ExecReload=kill -SIGUSR2 $MAINPID
|
||||||
|
Restart=on-failure
|
||||||
|
Slice=app-graphical.slice
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical-session.target
|
||||||
|
# Alternatively can be wanted by specific WMs' targets
|
||||||
|
# Should also be duplicated in 'After=' to avoid ordering loop
|
||||||
|
#WantedBy=wayland-session@hyprland.desktop.target
|
@@ -36,5 +36,10 @@ modules:
|
|||||||
- com.discordapp.Discord
|
- com.discordapp.Discord
|
||||||
user: {} # Also add Flathub user repo, but no user packages
|
user: {} # Also add Flathub user repo, but no user packages
|
||||||
|
|
||||||
|
- type: systemd
|
||||||
|
user:
|
||||||
|
enabled:
|
||||||
|
- waybar.service
|
||||||
|
|
||||||
- type: signing # this sets up the proper policy & signing files for signed images to work fully
|
- type: signing # this sets up the proper policy & signing files for signed images to work fully
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user