~sewn

Recent activity

Re: how should xdg-activation be handled? 4 days ago

From sewn to ~adnano/wmenu-devel

On 2024-04-15 00:29, Adnan Maolood wrote:

> Printing the token in addition to the selected item feels like more of 
> a hack
> than simply executing it with wmenu.

Why? I don't see a reason why this is. I believe printing the token is a 
better
solution. Tools should work together!

> Another possible approach would be to have another program fetch the 
> token,
> execute wmenu, and then run the selection. I'm not sure if that's much 
> better

[PATCH] make menu height accurate to dwm, dmenu, and dwl's bar patch 10 days ago

From sewn to ~adnano/wmenu-devel

---
 menu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/menu.c b/menu.c
index 953aa95..549b730 100644
--- a/menu.c
+++ b/menu.c
@@ -165,7 +165,7 @@ void menu_getopts(struct menu *menu, int argc, char *argv[]) {
	}

	int height = get_font_height(menu->font);
	menu->line_height = height + 3;
	menu->line_height = height + 2;
[message trimmed]

Re: how should xdg-activation be handled? 10 days ago

From sewn to ~adnano/wmenu-devel

On 2024-04-07 15:54, Adnan Maolood wrote:

> I pushed a commit which adds a new wmenu -x flag. Feel free to try it 
> out and
> let me know what you think.

This is not quite what i had expected, and this is makes wmenu do 
something it shouldn't.
wmenu is a menu program, not an executor. wmenu -x should print out the 
xdg token only.

If wmenu were to handle execution, then let's integrate wmenu_run into 
wmenu, which obviously is beyond the scope of wmenu.

how should xdg-activation be handled? 21 days ago

From sewn to ~adnano/wmenu-devel

in the default sway configuration, wmenu alongside dmenu_path is used 
for
using it to execute the program with swaymsg:

	# Your preferred application launcher
	# Note: pass the final command to swaymsg so that the resulting window 
can be opened
	# on the original workspace that the command was run on.
	set $menu dmenu_path | wmenu | xargs swaymsg exec --

sway does this to make the descendant program have the environment 
variable
$XDG_ACTIVATION_TOKEN; this variable (quoted by emersion) is used to 
properly

somebar is obsolete 26 days ago

From sewn to ~raphi/public-inbox

Hi, i would like to bring to the table going forward a patch for dwl
itself called the bar patch, which is now upstreamed in dwl-patches
and aims to perfectly replicate the original dwm bar in suckless fasion
using fcft instead of pango and cairo.

I've noticed somebar uses C++, which is not suckless, and is opting to
replace software such as slstatus with harmful alternatives such as a
somebar equivalent called someblocks.

Which is why i would reccomend the usage of the bar patch, since somebar
does not offer features that make it acceptable to be a valid 
replacement,
and nor is it suckless - it is in [harmful] C++.

[PATCH] add wmenu_run script, similar to dmenu_run script a month ago

From sewn to ~adnano/wmenu-devel

based off the works of sinanmohd, modified to be simpler and better
to read, with shellcheck.

Co-authored-by: sinanmohd <sinan@firemail.cc>
---
 meson.build |  2 ++
 wmenu_run   | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)
 create mode 100755 wmenu_run

diff --git a/meson.build b/meson.build
index b9f4ec9..56fe511 100644
--- a/meson.build
+++ b/meson.build
[message trimmed]

[PATCH] port dmenu password patch a month ago

From sewn to ~adnano/wmenu-devel

---
 docs/wmenu.1.scd |  6 +++++-
 menu.c           | 13 ++++++++++---
 menu.h           |  2 ++
 render.c         | 15 +++++++++++++--
 4 files changed, 30 insertions(+), 6 deletions(-)

diff --git a/docs/wmenu.1.scd b/docs/wmenu.1.scd
index 0117aa1..407da9f 100644
--- a/docs/wmenu.1.scd
+++ b/docs/wmenu.1.scd
@@ -6,7 +6,7 @@ wmenu - dynamic menu for Wayland

# SYNOPSIS
[message trimmed]

Re: [PATCH] add wmenu_run script, similar to dmenu_run script a month ago

From sewn to ~adnano/wmenu-devel

On 2024-03-02 13:17, Adnan Maolood wrote:

> Hi, thanks for the patch! I'll have to hold back on applying this patch 
> for a
> bit. I'm still unsure about which approach I want to use to implement 
> this.
> 
> See also previous discussion: 
> https://lists.sr.ht/~adnano/wmenu-devel/patches/39820

I made this patch without knowing that a patch had already been made for 
implementing
wmenu_run.

Re: [PATCH] port dmenu password patch a month ago

From sewn to ~adnano/wmenu-devel

On 2024-03-02 13:20, Adnan Maolood wrote:

> Hi, thanks for the patch!
> 
> The goal of wmenu is to have feature-parity with dmenu. I'm not really
> interested in adding features that aren't present in dmenu at the 
> moment, but I
> might make an exception if this feature is popular enough.

I suggest having a place for patches, such as a mailing list in the 
wmenu project
dedicated to patches.

[PATCH] port dmenu password patch a month ago

From sewn to ~adnano/wmenu-devel

---
 docs/wmenu.1.scd |  6 +++++-
 main.c           | 26 ++++++++++++++++++++++----
 2 files changed, 27 insertions(+), 5 deletions(-)

diff --git a/docs/wmenu.1.scd b/docs/wmenu.1.scd
index 5fbf50e..7ef6ccd 100644
--- a/docs/wmenu.1.scd
+++ b/docs/wmenu.1.scd
@@ -6,7 +6,7 @@ wmenu - dynamic menu for Wayland

# SYNOPSIS

*wmenu* [-biv] \
[message trimmed]