From 1b0d840595653ed89742ba79b8a2aace36111041 Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Tue, 11 Apr 2023 19:20:03 -0500 Subject: feat(ports): add somebar --- localports/somebar/APKBUILD | 38 ++++++++++++++++++++++++++++++++++++++ localports/somebar/config.hpp | 27 +++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 localports/somebar/APKBUILD create mode 100644 localports/somebar/config.hpp (limited to 'localports') diff --git a/localports/somebar/APKBUILD b/localports/somebar/APKBUILD new file mode 100644 index 0000000..f4945bc --- /dev/null +++ b/localports/somebar/APKBUILD @@ -0,0 +1,38 @@ +# Maintainer: Sam Nystrom +pkgname=somebar +pkgver=1.0.3 +pkgrel=0 +pkgdesc="dwm-like bar for dwl" +url="https://sr.ht/~raphi/somebar" +arch="all" +license="MIT" +makedepends="meson ninja pkgconf wayland-dev wayland-protocols cairo-dev pango-dev" +install="" +options="!check" # no tests +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~raphi/somebar/archive/$pkgver.tar.gz + config.hpp + " + +prepare() { + default_prepare + cd "$builddir" + cp "$srcdir/config.hpp" src/config.hpp + patch -p1 -i contrib/colorless-status.patch + # patch -p1 -i contrib/dwm-like-tag-indicator.patch + patch -p1 -i contrib/markup-in-status-messages.patch +} + +build() { + abuild-meson . output + meson compile ${JOBS:+-j ${JOBS}} -C output +} + +package() { + DESTDIR="$pkgdir" meson install --no-rebuild -C output +} + +sha512sums=" +6294aaf3e9bc20b6fbc2221038f044ca505096e78b96981a234d0b0858d4a57bd1ffd5d1b53930b820e97b1fddf9a5149eaa1cb22e300629f92d197e3d5d7e5d somebar-1.0.3.tar.gz +c6603d2b61fb8010c17940db4d07056618c29bed1cb93691539863ae1451daab79f1629a5f76f2a9831c205d3eaba8a8345531e680b1b326aec0d1c36159b7ea config.hpp +" diff --git a/localports/somebar/config.hpp b/localports/somebar/config.hpp new file mode 100644 index 0000000..cf1654b --- /dev/null +++ b/localports/somebar/config.hpp @@ -0,0 +1,27 @@ +// somebar - dwl bar +// See LICENSE file for copyright and license details. + +#pragma once +#include "common.hpp" + +constexpr bool topbar = true; + +constexpr int paddingX = 10; +constexpr int paddingY = 2; + +// See https://docs.gtk.org/Pango/type_func.FontDescription.from_string.html +constexpr const char* font = "FiraCode Nerd Font 12"; + +constexpr ColorScheme colorInactive = {Color(0xc6, 0xa0, 0xf6), Color(0x24, 0x27, 0x3a)}; +constexpr ColorScheme colorActive = {Color(0x24, 0x27, 0x3a), Color(0xc6, 0xa0, 0xf6)}; +constexpr const char* termcmd[] = {"foot", nullptr}; + +static std::vector tagNames = { + "1", "2", "3", + "4", "5", "6", + "7", "8", "9", +}; + +constexpr Button buttons[] = { + { ClkStatusText, BTN_RIGHT, spawn, {.v = termcmd} }, +}; -- cgit v1.2.3