package/sway: enable swaybar support

Add a config option to build sway with swaybar support.
  - The bar requires dejavu fonts.
  - If bash-completions is selected, JQ is required.
  - Select dmenu-wayland as a runtime dependency.

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
[yann.morin.1998@free.fr: jq is a runtime dependency too]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Adam Duskett 2023-12-21 08:36:16 -07:00 committed by Yann E. MORIN
parent b5b18f9eba
commit b08df59fc6
2 changed files with 18 additions and 1 deletions

View File

@ -24,6 +24,18 @@ config BR2_PACKAGE_SWAY
https://github.com/swaywm/sway
if BR2_PACKAGE_SWAY
config BR2_PACKAGE_SWAY_SWAYBAR
bool "swaybar"
select BR2_PACKAGE_DEJAVU
select BR2_PACKAGE_JQ if BR2_PACKAGE_BASH_COMPLETION # Runtime
select BR2_PACKAGE_DMENU_WAYLAND # Runtime
help
Enable support for swaybar
endif # BR2_PACKAGE_SWAY
comment "sway needs systemd, udev, EGL w/ Wayland backend and OpenGL ES support"
depends on !BR2_PACKAGE_SYSTEMD || \
!BR2_PACKAGE_HAS_UDEV || \

View File

@ -13,7 +13,6 @@ SWAY_CONF_OPTS = \
-Dwerror=false \
-Dzsh-completions=false \
-Dfish-completions=false \
-Dswaybar=false \
-Dswaynag=false \
-Dtray=disabled \
-Dman-pages=disabled \
@ -44,4 +43,10 @@ else
SWAY_CONF_OPTS += -Ddefault-wallpaper=false
endif
ifeq ($(BR2_PACKAGE_SWAY_SWAYBAR),y)
SWAY_CONF_OPTS += -Dswaybar=true
else
SWAY_CONF_OPTS += -Dswaybar=false
endif
$(eval $(meson-package))