diff options
Diffstat (limited to 'localports')
| -rw-r--r-- | localports/dwl/APKBUILD | 34 | ||||
| -rw-r--r-- | localports/dwl/config.h | 166 | ||||
| -rw-r--r-- | localports/dwl/xwayland.patch | 12 | ||||
| -rw-r--r-- | localports/ppucciniest-playground/APKBUILD | 29 | ||||
| -rwxr-xr-x | localports/ppucciniest-playground/ppucciniest-playground.initd | 11 | ||||
| -rw-r--r-- | localports/ppucciniest-playground/ppucciniest-playground.post-deinstall | 6 | ||||
| -rwxr-xr-x | localports/ppucciniest-playground/ppucciniest-playground.pre-install | 7 | ||||
| -rw-r--r-- | localports/ppucciniest/APKBUILD | 26 | ||||
| -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 |
11 files changed, 0 insertions, 392 deletions
diff --git a/localports/dwl/APKBUILD b/localports/dwl/APKBUILD deleted file mode 100644 index 74966e3..0000000 --- a/localports/dwl/APKBUILD +++ /dev/null @@ -1,34 +0,0 @@ -# Maintainer: Sam Nystrom <sam@samnystrom.dev> -pkgname=dwl -pkgver=0.4 -pkgrel=0 -pkgdesc="dwm for wayland" -url="https://github.com/djpohly/dwl" -arch="all" -license="GPL-3.0-only" -makedepends="wlroots-dev wayland-protocols" -options="!check" # no tests -subpackages="$pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/djpohly/dwl/archive/refs/tags/v$pkgver.tar.gz - xwayland.patch - config.h - " - -prepare() { - default_prepare - cp "$srcdir"/config.h "$builddir"/config.def.h -} - -build() { - make -} - -package() { - make DESTDIR="$pkgdir" PREFIX=/usr install -} - -sha512sums=" -6e15e05001e6469d13bef2d532980585d57de55c8feb461a7c25a76d7cdaee022785485faca02cd9d1214457fbeb1bec0eb652700ba0ddccca4aa780df0046b2 dwl-0.4.tar.gz -7c7952ede929faa137f690b3d1f44c1af4b40a3a6dac7bc3d5a377c8c454b35de1becdbbd1f3cbbde56c798f4f3bf78bc7eef4d7faa0e761d317179c072c629f xwayland.patch -b2f825d1ce3fa39dfe6a1efb5cff96d096cf913e341eea21a9d350372c4318839a2479fdb576954f529c90daf756deea3d7c3d89e539bfac61e61c5af73d096e config.h -" diff --git a/localports/dwl/config.h b/localports/dwl/config.h deleted file mode 100644 index c1286b5..0000000 --- a/localports/dwl/config.h +++ /dev/null @@ -1,166 +0,0 @@ -/* appearance */ -static const int sloppyfocus = 0; /* focus follows mouse */ -static const int bypass_surface_visibility = 0; /* 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible */ -static const unsigned int borderpx = 1; /* border pixel of windows */ -static const float rootcolor[] = {0.141, 0.153, 0.227, 1.0}; -static const float bordercolor[] = {0.212, 0.227, 0.310, 1.0}; -static const float focuscolor[] = {0.576, 0.604, 0.718, 1.0}; -/* To conform the xdg-protocol, set the alpha to zero to restore the old behavior */ -static const float fullscreen_bg[] = {0.141, 0.153, 0.227, 1.0}; - -/* tagging */ -static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; - -static const Rule rules[] = { - /* app_id title tags mask isfloating isterm noswallow monitor */ - { "foot", NULL, 0, 0, 1, 0, -1 }, -}; - -/* layout(s) */ -static const Layout layouts[] = { - /* symbol arrange function */ - { "[]=", tile }, - { "><>", NULL }, /* no layout function means floating behavior */ - { "[M]", monocle }, -}; - -/* monitors */ -static const MonitorRule monrules[] = { - /* name mfact nmaster scale layout rotate/reflect */ - /* example of a HiDPI laptop monitor: - { "eDP-1", 0.5, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL }, - */ - /* defaults */ - { NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL }, -}; - -/* keyboard */ -static const struct xkb_rule_names xkb_rules = { - /* can specify fields: rules, model, layout, variant, options */ - /* example: - .options = "ctrl:nocaps", - */ - .options = NULL, -}; - -static const int repeat_rate = 40; -static const int repeat_delay = 300; - -/* Trackpad */ -static const int tap_to_click = 0; -static const int tap_and_drag = 1; -static const int drag_lock = 1; -static const int natural_scrolling = 0; -static const int disable_while_typing = 1; -static const int left_handed = 1; -static const int middle_button_emulation = 0; -/* You can choose between: -LIBINPUT_CONFIG_SCROLL_NO_SCROLL -LIBINPUT_CONFIG_SCROLL_2FG -LIBINPUT_CONFIG_SCROLL_EDGE -LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN -*/ -static const enum libinput_config_scroll_method scroll_method = LIBINPUT_CONFIG_SCROLL_2FG; - -/* You can choose between: -LIBINPUT_CONFIG_CLICK_METHOD_NONE -LIBINPUT_CONFIG_CLICK_METHOD_BUTTON_AREAS -LIBINPUT_CONFIG_CLICK_METHOD_CLICKFINGER -*/ -static const enum libinput_config_click_method click_method = LIBINPUT_CONFIG_CLICK_METHOD_BUTTON_AREAS; - -/* You can choose between: -LIBINPUT_CONFIG_SEND_EVENTS_ENABLED -LIBINPUT_CONFIG_SEND_EVENTS_DISABLED -LIBINPUT_CONFIG_SEND_EVENTS_DISABLED_ON_EXTERNAL_MOUSE -*/ -static const uint32_t send_events_mode = LIBINPUT_CONFIG_SEND_EVENTS_ENABLED; - -/* You can choose between: -LIBINPUT_CONFIG_ACCEL_PROFILE_FLAT -LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE -*/ -static const enum libinput_config_accel_profile accel_profile = LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE; -static const double accel_speed = 0.0; -/* You can choose between: -LIBINPUT_CONFIG_TAP_MAP_LRM -- 1/2/3 finger tap maps to left/right/middle -LIBINPUT_CONFIG_TAP_MAP_LMR -- 1/2/3 finger tap maps to left/middle/right -*/ -static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TAP_MAP_LRM; - -/* If you want to use the windows key for MODKEY, use WLR_MODIFIER_LOGO */ -#define MODKEY WLR_MODIFIER_LOGO - -#define TAGKEYS(KEY,SKEY,TAG) \ - { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ - { MODKEY|WLR_MODIFIER_CTRL, KEY, toggleview, {.ui = 1 << TAG} }, \ - { MODKEY|WLR_MODIFIER_SHIFT, SKEY, tag, {.ui = 1 << TAG} }, \ - { MODKEY|WLR_MODIFIER_CTRL|WLR_MODIFIER_SHIFT,SKEY,toggletag, {.ui = 1 << TAG} } - -/* commands */ -static const char *termcmd[] = { "foot", NULL }; -static const char *menucmd[] = { "tofi-drun", NULL }; -static const char *upvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL }; -static const char *downvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL }; -static const char *mute[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL }; -static const char *micmute[] = { "pactl", "set-source-mute", "@DEFAULT_SINK@", "toggle", NULL }; -static const char *upbright[] = { "brightnessctl", "set", "+5%", NULL }; -static const char *downbright[] = { "brightnessctl", "set", "5%-", NULL }; - -static const Key keys[] = { - /* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */ - /* modifier key function argument */ - { MODKEY, XKB_KEY_p, spawn, {.v = menucmd} }, - { MODKEY, XKB_KEY_Return, spawn, {.v = termcmd} }, - { MODKEY, XKB_KEY_j, focusstack, {.i = +1} }, - { MODKEY, XKB_KEY_k, focusstack, {.i = -1} }, - { MODKEY, XKB_KEY_i, incnmaster, {.i = +1} }, - { MODKEY, XKB_KEY_d, incnmaster, {.i = -1} }, - { MODKEY, XKB_KEY_h, setmfact, {.f = -0.05} }, - { MODKEY, XKB_KEY_l, setmfact, {.f = +0.05} }, - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_H, setmfact, {.f = -0.01} }, - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_L, setmfact, {.f = +0.01} }, - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, zoom, {0} }, - { MODKEY, XKB_KEY_Tab, view, {0} }, - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_C, killclient, {0} }, - { MODKEY, XKB_KEY_t, setlayout, {.v = &layouts[0]} }, - { MODKEY, XKB_KEY_f, setlayout, {.v = &layouts[1]} }, - { MODKEY, XKB_KEY_m, setlayout, {.v = &layouts[2]} }, - { MODKEY, XKB_KEY_space, setlayout, {0} }, - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} }, - { MODKEY, XKB_KEY_e, togglefullscreen, {0} }, - { MODKEY, XKB_KEY_0, view, {.ui = ~0} }, - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_parenright, tag, {.ui = ~0} }, - { MODKEY, XKB_KEY_comma, focusmon, {.i = WLR_DIRECTION_LEFT} }, - { MODKEY, XKB_KEY_period, focusmon, {.i = WLR_DIRECTION_RIGHT} }, - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_less, tagmon, {.i = WLR_DIRECTION_LEFT} }, - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_greater, tagmon, {.i = WLR_DIRECTION_RIGHT} }, - TAGKEYS( XKB_KEY_1, XKB_KEY_exclam, 0), - TAGKEYS( XKB_KEY_2, XKB_KEY_at, 1), - TAGKEYS( XKB_KEY_3, XKB_KEY_numbersign, 2), - TAGKEYS( XKB_KEY_4, XKB_KEY_dollar, 3), - TAGKEYS( XKB_KEY_5, XKB_KEY_percent, 4), - TAGKEYS( XKB_KEY_6, XKB_KEY_asciicircum, 5), - TAGKEYS( XKB_KEY_7, XKB_KEY_ampersand, 6), - TAGKEYS( XKB_KEY_8, XKB_KEY_asterisk, 7), - TAGKEYS( XKB_KEY_9, XKB_KEY_parenleft, 8), - { 0, XKB_KEY_XF86AudioRaiseVolume, spawn,{.v = upvol} }, - { 0, XKB_KEY_XF86AudioLowerVolume, spawn,{.v = downvol} }, - { 0, XKB_KEY_XF86AudioMute, spawn,{.v = mute} }, - { 0, XKB_KEY_XF86AudioMicMute, spawn,{.v = micmute} }, - { 0, XKB_KEY_XF86MonBrightnessUp, spawn,{.v = upbright} }, - { 0, XKB_KEY_XF86MonBrightnessDown,spawn,{.v = downbright} }, - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_E, quit, {0} }, - - /* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */ - { WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,XKB_KEY_Terminate_Server, quit, {0} }, -#define CHVT(n) { WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,XKB_KEY_XF86Switch_VT_##n, chvt, {.ui = (n)} } - CHVT(1), CHVT(2), CHVT(3), CHVT(4), CHVT(5), CHVT(6), - CHVT(7), CHVT(8), CHVT(9), CHVT(10), CHVT(11), CHVT(12), -}; - -static const Button buttons[] = { - { MODKEY, BTN_LEFT, moveresize, {.ui = CurMove} }, - { MODKEY, BTN_MIDDLE, togglefloating, {0} }, - { MODKEY, BTN_RIGHT, moveresize, {.ui = CurResize} }, -}; diff --git a/localports/dwl/xwayland.patch b/localports/dwl/xwayland.patch deleted file mode 100644 index 4bed22b..0000000 --- a/localports/dwl/xwayland.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/config.mk b/config.mk -index f50156f..a20a8f0 100644 ---- a/config.mk -+++ b/config.mk -@@ -10,5 +10,5 @@ MANDIR = $(PREFIX)/share/man - XWAYLAND = - XLIBS = - # Uncomment to build XWayland support --#XWAYLAND = -DXWAYLAND --#XLIBS = xcb xcb-icccm -+XWAYLAND = -DXWAYLAND -+XLIBS = xcb xcb-icccm diff --git a/localports/ppucciniest-playground/APKBUILD b/localports/ppucciniest-playground/APKBUILD deleted file mode 100644 index 526728a..0000000 --- a/localports/ppucciniest-playground/APKBUILD +++ /dev/null @@ -1,29 +0,0 @@ -# Contributor: Sam Nystrom <sam@samnystrom.dev> -# Maintainer: Sam Nystrom <sam@samnystrom.dev> -pkgname=ppucciniest-playground -pkgver=0.1.0 -pkgrel=0 -pkgdesc="An online playground for ppucciniest" -url="https://git.sr.ht/~stonks3141/ppucciniest-playground" -arch="all" -license="AGPL-3.0-or-later" -depends="ppucciniest" -makedepends="go" -options="!check" # no tests -install="$pkgname.pre-install $pkgname.post-deinstall" -subpackages="$pkgname-openrc" -source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~stonks3141/ppucciniest-playground/archive/$pkgver.tar.gz - $pkgname.initd" - -build() { - go build -} - -package() { - install -Dm755 ./ppucciniest-playground "$pkgdir"/usr/bin/ppucciniest-playground - install -Dm755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname -} -sha512sums=" -fde9d38730f42a11900542830fb29afe8adb36b2a5b50dec347e34371dbea1b0ff93d7bcb6939def814a8a597d8bd7467e952d3bf86e0ceb418e564296bae80e ppucciniest-playground-0.1.0.tar.gz -af60e6980ce7e44ae5a716ed19e84c3ddcc7e401b7b9c50e4f4093e69ad91bdfb249cbcca1be0813cf6b5e15a35219ab468326fae13b480272a9cecfd679f7cd ppucciniest-playground.initd -" diff --git a/localports/ppucciniest-playground/ppucciniest-playground.initd b/localports/ppucciniest-playground/ppucciniest-playground.initd deleted file mode 100755 index f9f31e3..0000000 --- a/localports/ppucciniest-playground/ppucciniest-playground.initd +++ /dev/null @@ -1,11 +0,0 @@ -#!/sbin/openrc-run - -name="ppucciniest-playground" -description="An online playground for ppucciniest" -supervisor=supervise-daemon -command="/usr/bin/$name" -command_user="ppucciniest_playground:ppucciniest_playground" - -depend() { - need net -} diff --git a/localports/ppucciniest-playground/ppucciniest-playground.post-deinstall b/localports/ppucciniest-playground/ppucciniest-playground.post-deinstall deleted file mode 100644 index 8b13986..0000000 --- a/localports/ppucciniest-playground/ppucciniest-playground.post-deinstall +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -delgroup ppucciniest_playground 2>/dev/null -deluser ppucciniest_playground 2>/dev/null - -exit 0 diff --git a/localports/ppucciniest-playground/ppucciniest-playground.pre-install b/localports/ppucciniest-playground/ppucciniest-playground.pre-install deleted file mode 100755 index 29b6997..0000000 --- a/localports/ppucciniest-playground/ppucciniest-playground.pre-install +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -addgroup -S ppucciniest_playground 2>/dev/null -adduser -SDs/sbin/nologin -Gppucciniest_playground -gppucciniest_playground \ - ppucciniest_playground ppucciniest_playground 2>/dev/null - -exit 0 diff --git a/localports/ppucciniest/APKBUILD b/localports/ppucciniest/APKBUILD deleted file mode 100644 index dc9b91e..0000000 --- a/localports/ppucciniest/APKBUILD +++ /dev/null @@ -1,26 +0,0 @@ -# Contributor: Sam Nystrom <sam@samnystrom.dev> -# Maintainer: Sam Nystrom <sam@samnystrom.dev> -pkgname=ppucciniest -pkgver=1.0.0 -pkgrel=0 -pkgdesc="Generate Catppuccin flavors of a file from a template" -url="https://sr.ht/~stonks3141/ppucciniest" -arch="all" -license="GPL-3.0-or-later" -depends="" -makedepends="hare haredo scdoc" -options="!check" # no tests -subpackages="$pkgname-doc" -source="ppucciniest-$pkgver.tar.gz::https://git.sr.ht/~stonks3141/ppucciniest/archive/$pkgver.tar.gz" - -build() { - LDFLAGS= haredo -} - -package() { - PREFIX="$pkgdir/usr" haredo install -} - -sha512sums=" -115bb0d32650e5f111ee43096df3c973b5468b7aa18a9717f3e059c47c6c475a67ec7982a9045470c6fee054a8f0e287e8fe6b7be19c674446156651eeda4db5 ppucciniest-1.0.0.tar.gz -" 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 - |
