mirror of
https://github.com/swaywm/sway.git
synced 2026-04-14 08:22:08 -04:00
swaybar: add tray interface
This commit is contained in:
parent
598e950296
commit
5f65f33989
8 changed files with 110 additions and 13 deletions
|
|
@ -1,3 +1,28 @@
|
|||
tray_files = get_option('enable-tray') ? [
|
||||
'tray/tray.c',
|
||||
] : []
|
||||
|
||||
swaybar_deps = [
|
||||
cairo,
|
||||
client_protos,
|
||||
gdk_pixbuf,
|
||||
jsonc,
|
||||
math,
|
||||
pango,
|
||||
pangocairo,
|
||||
rt,
|
||||
wayland_client,
|
||||
wayland_cursor,
|
||||
wlroots,
|
||||
]
|
||||
if get_option('enable-tray')
|
||||
if systemd.found()
|
||||
swaybar_deps += systemd
|
||||
elif elogind.found()
|
||||
swaybar_deps += elogind
|
||||
endif
|
||||
endif
|
||||
|
||||
executable(
|
||||
'swaybar', [
|
||||
'bar.c',
|
||||
|
|
@ -8,21 +33,10 @@ executable(
|
|||
'main.c',
|
||||
'render.c',
|
||||
'status_line.c',
|
||||
tray_files
|
||||
],
|
||||
include_directories: [sway_inc],
|
||||
dependencies: [
|
||||
cairo,
|
||||
client_protos,
|
||||
gdk_pixbuf,
|
||||
jsonc,
|
||||
math,
|
||||
pango,
|
||||
pangocairo,
|
||||
rt,
|
||||
wayland_client,
|
||||
wayland_cursor,
|
||||
wlroots,
|
||||
],
|
||||
dependencies: swaybar_deps,
|
||||
link_with: [lib_sway_common, lib_sway_client],
|
||||
install_rpath : rpathdir,
|
||||
install: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue