diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2023-10-24 21:34:46 -0400 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2023-10-24 21:34:46 -0400 |
| commit | 6fc3bdba27bc854c01108cc4c54086407a2daeb9 (patch) | |
| tree | 90934b8e2dfa0255a42571efe71c8cae020694f4 /localports/somebar | |
| parent | 0b6b998298afe1b04f84ff11427d23c7cce2ea5d (diff) | |
Remove localports that I build from source now
Diffstat (limited to 'localports/somebar')
| -rw-r--r-- | localports/somebar/APKBUILD | 40 | ||||
| -rw-r--r-- | localports/somebar/config.hpp | 27 | ||||
| -rw-r--r-- | localports/somebar/dwm-like-tag-indicator.patch | 34 |
3 files changed, 0 insertions, 101 deletions
diff --git a/localports/somebar/APKBUILD b/localports/somebar/APKBUILD deleted file mode 100644 index 08779d9..0000000 --- a/localports/somebar/APKBUILD +++ /dev/null @@ -1,40 +0,0 @@ -# Maintainer: Sam Nystrom <sam@samnystrom.dev> -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 - dwm-like-tag-indicator.patch - 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 -982c0d1479a72061d8609b4dd6e372539befcf1f1628487c523bd98d815a1894da0e889d9e7c9fca643de4d4e7ef4d4dc5574d417fa4a5ee79fa13b9b5ed6811 dwm-like-tag-indicator.patch -c6603d2b61fb8010c17940db4d07056618c29bed1cb93691539863ae1451daab79f1629a5f76f2a9831c205d3eaba8a8345531e680b1b326aec0d1c36159b7ea config.hpp -" diff --git a/localports/somebar/config.hpp b/localports/somebar/config.hpp deleted file mode 100644 index cf1654b..0000000 --- a/localports/somebar/config.hpp +++ /dev/null @@ -1,27 +0,0 @@ -// 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<std::string> tagNames = { - "1", "2", "3", - "4", "5", "6", - "7", "8", "9", -}; - -constexpr Button buttons[] = { - { ClkStatusText, BTN_RIGHT, spawn, {.v = termcmd} }, -}; diff --git a/localports/somebar/dwm-like-tag-indicator.patch b/localports/somebar/dwm-like-tag-indicator.patch deleted file mode 100644 index c4458e9..0000000 --- a/localports/somebar/dwm-like-tag-indicator.patch +++ /dev/null @@ -1,34 +0,0 @@ -From: Henrique Possatto <henriquempossatto@gmail.com> -Date: Mon, 26 Dec 2022 18:01:35 -0300 -Subject: [PATCH somebar] patch to show square tag indicator like dwm -diff --git a/src/bar.cpp b/src/bar.cpp -index 507ce62..4fda8b0 100644 ---- a/src/bar.cpp -+++ b/src/bar.cpp -@@ -245,12 +245,17 @@ void Bar::renderTags() - tag.state & TagState::Active ? colorActive : colorInactive, - tag.state & TagState::Urgent); - renderComponent(tag.component); -- auto indicators = std::min(tag.numClients, static_cast<int>(_bufs->height/2)); -- for (auto ind = 0; ind < indicators; ind++) { -- auto w = ind == tag.focusedClient ? 7 : 1; -- cairo_move_to(_painter, tag.component.x, ind*2+0.5); -- cairo_rel_line_to(_painter, w, 0); -- cairo_close_path(_painter); -+ -+ if(!tag.numClients) -+ continue; -+ -+ int s = barfont.height / 9; -+ int w = barfont.height / 6 + 2; -+ if (tag.focusedClient != -1) { -+ cairo_rectangle(_painter, tag.component.x + s, s, w, w); -+ cairo_fill(_painter); -+ } else { -+ cairo_rectangle(_painter, (double)(tag.component.x + s) + 0.5, (double)(s) + 0.5, w, w); - cairo_set_line_width(_painter, 1); - cairo_stroke(_painter); - } --- -2.39.0 - |
