mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 22:52:30 +02:00
install a systemd user unit
add a systemd --user unit/service file, so that one can run waybar as a --user systemd service. when the service is enabled, Waybar will start when the wayland-session.target is started. this feature is automatically enabled if systemd is found, but can be disabled with -Dsystemd=disabled
This commit is contained in:
@ -62,6 +62,13 @@ libnlgen = dependency('libnl-genl-3.0', required: get_option('libnl'))
|
||||
libpulse = dependency('libpulse', required: get_option('pulseaudio'))
|
||||
libudev = dependency('libudev', required: get_option('libudev'))
|
||||
libmpdclient = dependency('libmpdclient', required: get_option('mpd'))
|
||||
systemd = dependency('systemd', required: get_option('systemd'))
|
||||
|
||||
if systemd.found()
|
||||
user_units_dir = systemd.get_pkgconfig_variable('systemduserunitdir')
|
||||
install_data('./resources/waybar.service',
|
||||
install_dir: user_units_dir)
|
||||
endif
|
||||
|
||||
src_files = files(
|
||||
'src/factory.cpp',
|
||||
|
Reference in New Issue
Block a user