git: 097fb98c6a84 - main - x11/sfwbar: + Flexible taskbar application for wayland compositors
Date: Fri, 02 Dec 2022 10:05:19 UTC
The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=097fb98c6a845d5f192e209efa1929d4cf802293 commit 097fb98c6a845d5f192e209efa1929d4cf802293 Author: Tino Engel <tino.engel@mail.de> AuthorDate: 2022-12-02 10:02:58 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2022-12-02 10:03:57 +0000 x11/sfwbar: + Flexible taskbar application for wayland compositors PR: 268085 --- x11/sfwbar/Makefile | 27 ++++++++++ x11/sfwbar/distinfo | 3 ++ x11/sfwbar/files/pkg-message.in | 20 +++++++ x11/sfwbar/pkg-descr | 7 +++ x11/sfwbar/pkg-plist | 116 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 173 insertions(+) diff --git a/x11/sfwbar/Makefile b/x11/sfwbar/Makefile new file mode 100644 index 000000000000..b8e0d6023b40 --- /dev/null +++ b/x11/sfwbar/Makefile @@ -0,0 +1,27 @@ +PORTNAME= sfwbar +DISTVERSION= v1.0_beta9 +CATEGORIES= x11 + +MAINTAINER= tino.engel@mail.de +COMMENT= Flexible taskbar application for wayland compositors +WWW= https://github.com/LBCrion/sfwbar + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols +LIB_DEPENDS= libgtk-layer-shell.so:x11-toolkits/gtk-layer-shell \ + libwayland-client.so:graphics/wayland \ + libjson-c.so:devel/json-c +RUN_DEPENDS= wayland-protocols>0:graphics/wayland-protocols + +USES= meson ninja pkgconfig gnome +USE_GNOME= cairo gdkpixbuf2 glib20 gtk30 + +USE_GITHUB= yes +GH_ACCOUNT= LBCrion + +SUB_FILES= pkg-message +SUB_LIST= DATADIR=${DATADIR} + +.include <bsd.port.mk> diff --git a/x11/sfwbar/distinfo b/x11/sfwbar/distinfo new file mode 100644 index 000000000000..c2368539d1eb --- /dev/null +++ b/x11/sfwbar/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1669757728 +SHA256 (LBCrion-sfwbar-v1.0_beta9_GH0.tar.gz) = ad4e2599c34703298871511e013b183d2c9b6f3c42e75d8a7514fae162ba07b3 +SIZE (LBCrion-sfwbar-v1.0_beta9_GH0.tar.gz) = 290432 diff --git a/x11/sfwbar/files/pkg-message.in b/x11/sfwbar/files/pkg-message.in new file mode 100644 index 000000000000..382f6ce9f3c3 --- /dev/null +++ b/x11/sfwbar/files/pkg-message.in @@ -0,0 +1,20 @@ +[ +{ type: install + message: <<EOM +Copy sfwbar.config from %%DATADIR%% to ~/.config/sfwbar/. +If you prefer to start with something more like tint2 bar, you can copy t2.config into ~/.config/sfwbar/sfwbar.config instead. +If you want something like waybar, you can copy wbar.config and if you prefer something from the darker side, w10.config could be for you. +For more information on the format of configuration file, please see the man page + +If you're using sway, you may want to add the following lines to your sway config file to open windows as floating by default: + +# open new windows as floating by default +for_window [app_id="[.]*"] floating enable +# set Alt-tab as a task switcher combo +bindsym Alt+Tab bar hidden_state toggle +# set $mod+c to hide/unhide taskbar +bindsym $mod+c bar mode toggle + +EOM +} +] diff --git a/x11/sfwbar/pkg-descr b/x11/sfwbar/pkg-descr new file mode 100644 index 000000000000..b1a6b804dc69 --- /dev/null +++ b/x11/sfwbar/pkg-descr @@ -0,0 +1,7 @@ +SFWBar (S* Floating Window Bar) is a flexible taskbar application for +wayland compositors, designed with a stacking layout in mind. +Originally developed for Sway, SFWBar will work with any wayland compositor +supporting layer shell protocol, the taskbar and window switcher functionality +shall work with any compositor supportinig foreign toplevel protocol, +but the pager, and window placement functionality require sway +(or at least i3 IPC support). diff --git a/x11/sfwbar/pkg-plist b/x11/sfwbar/pkg-plist new file mode 100644 index 000000000000..700bd8570aa1 --- /dev/null +++ b/x11/sfwbar/pkg-plist @@ -0,0 +1,116 @@ +bin/sfwbar +man/man1/sfwbar.1.gz +%%DATADIR%%/battery.widget +%%DATADIR%%/clock.widget +%%DATADIR%%/cpu-temp.widget +%%DATADIR%%/fan-rpm.widget +%%DATADIR%%/icons/misc/comp.svg +%%DATADIR%%/icons/misc/cpu.svg +%%DATADIR%%/icons/misc/fan.svg +%%DATADIR%%/icons/misc/fforward.svg +%%DATADIR%%/icons/misc/lan.svg +%%DATADIR%%/icons/misc/lock.svg +%%DATADIR%%/icons/misc/missing.svg +%%DATADIR%%/icons/misc/play.svg +%%DATADIR%%/icons/misc/rewind.svg +%%DATADIR%%/icons/misc/stop.svg +%%DATADIR%%/icons/misc/unlock.svg +%%DATADIR%%/icons/weather/LICENSE +%%DATADIR%%/icons/weather/clearsky_day.svg +%%DATADIR%%/icons/weather/clearsky_night.svg +%%DATADIR%%/icons/weather/clearsky_polartwilight.svg +%%DATADIR%%/icons/weather/cloudy.svg +%%DATADIR%%/icons/weather/fair_day.svg +%%DATADIR%%/icons/weather/fair_night.svg +%%DATADIR%%/icons/weather/fair_polartwilight.svg +%%DATADIR%%/icons/weather/fog.svg +%%DATADIR%%/icons/weather/heavyrain.svg +%%DATADIR%%/icons/weather/heavyrainandthunder.svg +%%DATADIR%%/icons/weather/heavyrainshowers_day.svg +%%DATADIR%%/icons/weather/heavyrainshowers_night.svg +%%DATADIR%%/icons/weather/heavyrainshowers_polartwilight.svg +%%DATADIR%%/icons/weather/heavyrainshowersandthunder_day.svg +%%DATADIR%%/icons/weather/heavyrainshowersandthunder_night.svg +%%DATADIR%%/icons/weather/heavyrainshowersandthunder_polartwilight.svg +%%DATADIR%%/icons/weather/heavysleet.svg +%%DATADIR%%/icons/weather/heavysleetandthunder.svg +%%DATADIR%%/icons/weather/heavysleetshowers_day.svg +%%DATADIR%%/icons/weather/heavysleetshowers_night.svg +%%DATADIR%%/icons/weather/heavysleetshowers_polartwilight.svg +%%DATADIR%%/icons/weather/heavysleetshowersandthunder_day.svg +%%DATADIR%%/icons/weather/heavysleetshowersandthunder_night.svg +%%DATADIR%%/icons/weather/heavysleetshowersandthunder_polartwilight.svg +%%DATADIR%%/icons/weather/heavysnow.svg +%%DATADIR%%/icons/weather/heavysnowandthunder.svg +%%DATADIR%%/icons/weather/heavysnowshowers_day.svg +%%DATADIR%%/icons/weather/heavysnowshowers_night.svg +%%DATADIR%%/icons/weather/heavysnowshowers_polartwilight.svg +%%DATADIR%%/icons/weather/heavysnowshowersandthunder_day.svg +%%DATADIR%%/icons/weather/heavysnowshowersandthunder_night.svg +%%DATADIR%%/icons/weather/heavysnowshowersandthunder_polartwilight.svg +%%DATADIR%%/icons/weather/lightrain.svg +%%DATADIR%%/icons/weather/lightrainandthunder.svg +%%DATADIR%%/icons/weather/lightrainshowers_day.svg +%%DATADIR%%/icons/weather/lightrainshowers_night.svg +%%DATADIR%%/icons/weather/lightrainshowers_polartwilight.svg +%%DATADIR%%/icons/weather/lightrainshowersandthunder_day.svg +%%DATADIR%%/icons/weather/lightrainshowersandthunder_night.svg +%%DATADIR%%/icons/weather/lightrainshowersandthunder_polartwilight.svg +%%DATADIR%%/icons/weather/lightsleet.svg +%%DATADIR%%/icons/weather/lightsleetandthunder.svg +%%DATADIR%%/icons/weather/lightsleetshowers_day.svg +%%DATADIR%%/icons/weather/lightsleetshowers_night.svg +%%DATADIR%%/icons/weather/lightsleetshowers_polartwilight.svg +%%DATADIR%%/icons/weather/lightsnow.svg +%%DATADIR%%/icons/weather/lightsnowandthunder.svg +%%DATADIR%%/icons/weather/lightsnowshowers_day.svg +%%DATADIR%%/icons/weather/lightsnowshowers_night.svg +%%DATADIR%%/icons/weather/lightsnowshowers_polartwilight.svg +%%DATADIR%%/icons/weather/lightssleetshowersandthunder_day.svg +%%DATADIR%%/icons/weather/lightssleetshowersandthunder_night.svg +%%DATADIR%%/icons/weather/lightssleetshowersandthunder_polartwilight.svg +%%DATADIR%%/icons/weather/lightssnowshowersandthunder_day.svg +%%DATADIR%%/icons/weather/lightssnowshowersandthunder_night.svg +%%DATADIR%%/icons/weather/lightssnowshowersandthunder_polartwilight.svg +%%DATADIR%%/icons/weather/partlycloudy_day.svg +%%DATADIR%%/icons/weather/partlycloudy_night.svg +%%DATADIR%%/icons/weather/partlycloudy_polartwilight.svg +%%DATADIR%%/icons/weather/rain.svg +%%DATADIR%%/icons/weather/rainandthunder.svg +%%DATADIR%%/icons/weather/rainshowers_day.svg +%%DATADIR%%/icons/weather/rainshowers_night.svg +%%DATADIR%%/icons/weather/rainshowers_polartwilight.svg +%%DATADIR%%/icons/weather/rainshowersandthunder_day.svg +%%DATADIR%%/icons/weather/rainshowersandthunder_night.svg +%%DATADIR%%/icons/weather/rainshowersandthunder_polartwilight.svg +%%DATADIR%%/icons/weather/sleet.svg +%%DATADIR%%/icons/weather/sleetandthunder.svg +%%DATADIR%%/icons/weather/sleetshowers_day.svg +%%DATADIR%%/icons/weather/sleetshowers_night.svg +%%DATADIR%%/icons/weather/sleetshowers_polartwilight.svg +%%DATADIR%%/icons/weather/sleetshowersandthunder_day.svg +%%DATADIR%%/icons/weather/sleetshowersandthunder_night.svg +%%DATADIR%%/icons/weather/sleetshowersandthunder_polartwilight.svg +%%DATADIR%%/icons/weather/snow.svg +%%DATADIR%%/icons/weather/snowandthunder.svg +%%DATADIR%%/icons/weather/snowshowers_day.svg +%%DATADIR%%/icons/weather/snowshowers_night.svg +%%DATADIR%%/icons/weather/snowshowers_polartwilight.svg +%%DATADIR%%/icons/weather/snowshowersandthunder_day.svg +%%DATADIR%%/icons/weather/snowshowersandthunder_night.svg +%%DATADIR%%/icons/weather/snowshowersandthunder_polartwilight.svg +%%DATADIR%%/idle.widget +%%DATADIR%%/lan-bps.widget +%%DATADIR%%/mb-temp.widget +%%DATADIR%%/mpd-mini.widget +%%DATADIR%%/mpd.widget +%%DATADIR%%/oneline.config +%%DATADIR%%/sfwbar.config +%%DATADIR%%/showdesktop.widget +%%DATADIR%%/startmenu.widget +%%DATADIR%%/t2.config +%%DATADIR%%/usage.widget +%%DATADIR%%/vertical.config +%%DATADIR%%/w10.config +%%DATADIR%%/wbar.config +%%DATADIR%%/weather.widget