LICENSE="MIT"
SLOT="0"
KEYWORDS=""
-IUSE="+swaybg +swaybar +swaymsg swaygrab swaylock +gdk-pixbuf zsh-completion wallpapers systemd"
+IUSE="+swaybg +swaybar +swaymsg swaygrab swaylock +gdk-pixbuf zsh-completion wallpapers systemd +tray"
+
+REQUIRED_USE="tray? ( swaybar )"
RDEPEND="=dev-libs/wlc-9999[systemd=]
dev-libs/json-c
x11-libs/pango
x11-libs/cairo
swaylock? ( virtual/pam )
+ tray? ( sys-apps/dbus )
gdk-pixbuf? ( x11-libs/gdk-pixbuf[jpeg] )"
DEPEND="${RDEPEND}
-Denable-swaygrab=$(usex swaygrab)
-Denable-swaylock=$(usex swaylock)
-Denable-swaymsg=$(usex swaymsg)
+ -Denable-tray=$(usex tray)
-Ddefault-wallpaper=$(usex wallpapers)
optfeature "swaygrab screenshot support" media-gfx/imagemagick[png]
optfeature "swaygrab video capture support" virtual/ffmpeg
fi
+ if use tray
+ then
+ optfeature "experimental xembed tray icons support" \
+ x11-misc/xembedsniproxy
+ fi
optfeature "X11 applications support" dev-libs/wlc[xwayland] x11-base/xorg-server[wayland]
+
}