~nicolai_dagestad

Recent activity

Re: [PATCH] Set environment variables for the exec command 5 days ago

From Nicolai Dagestad to ~sircmpwn/aerc

On Mon Aug 3, 2020 at 6:35 AM CEST, Reto wrote:
> Considering that the env vars are set upon spawning the term this could
> be ugly.
> Opinions?

I agree it would be weird to set them for the term. I don't see any good
way to have it set in a way that is not confusing.

[PATCH] Set environment variables for the exec command 10 days ago

From Nicolai Dagestad to ~sircmpwn/aerc

---

I implemented it only for AccountView and MessageViewer as they were the only
context it which it made sens to me.
Feel free to suggest more variables, theese are just the one that I had a use 
for. 

 commands/exec.go | 16 ++++++++++++++++
 doc/aerc.1.scd   |  4 +++-
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/commands/exec.go b/commands/exec.go
index e15afbe..771c528 100644
--- a/commands/exec.go
[message trimmed]

Re: Variable substitution for the exec command 10 days ago

From Nicolai Dagestad to ~sircmpwn/aerc

On Fri Jul 31, 2020 at 5:12 PM CEST, Leon Plickat wrote:
> It does. See src/item/command.c, line 73:
> execl("/bin/sh", "/bin/sh", "-c", cmd, NULL);

We are in the aerc mailing list though, not lavalauncher :p

Re: Variable substitution for the exec command 11 days ago

From Nicolai Dagestad to ~sircmpwn/aerc

> An alternative would be to set env variables and let the shell perform
> the expansion. So it would be something like $account and $folder.

The exec command doesn't use the shell to execute the command though. 
But I suppose that could be changed.

Re: Touch input escaping the bar 11 days ago

From Nicolai Dagestad to ~leon_plickat/lavalauncher

As I have the hardware to do the testing, I don't mind looking into it, but I 
don't really know where to find the right documentation, for now I've gone with
what I could find in https://wayland.freedesktop.org/docs/html/ and 
https://wayland-book.com/

Do you have any other interesting doc to look at ?

Touch input escaping the bar 13 days ago

From Nicolai Dagestad to ~leon_plickat/lavalauncher

I have tracked down the origin of the bug where touch input can escape the bar.
The problem occurs only with touch inputs. This is because contrary to mice
input, we don't get a touch_enter or touch_leave events. I am not really sure
how it should be fixed though, we can't just change item_from_coords to check
both x and y axis because when the touch input leaves the surface, we still
get touch events, but with coordinates relative to the output instead of the
bar.

Variable substitution for the exec command 14 days ago

From Nicolai Dagestad to ~sircmpwn/aerc

Hi, 
I'm adding a simple variable substitution for the exec command so I can sync my
maildirs with a shortcut from aerc.
What would be the prefered format, something like `{acount}` and `{folder}`
or %a and %f.

[PATCH] Make chars explicitly signed 21 days ago

From Nicolai Dagestad to ~leon_plickat/lavalauncher

---
C is a wonderfull language...
It is implementation defined whether a char is singed or unsigned
and it just so happnes that on arm it is unsigned and on x86_64 it
it signed.

Sent from my pinephone where lavalauncher now works 👍
 meson.build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meson.build b/meson.build
index 1bcc12c..e87d897 100644
--- a/meson.build
+++ b/meson.build
[message trimmed]

Re: [PATCH v3] Add multi finger touch support 28 days ago

From Nicolai Dagestad to ~leon_plickat/lavalauncher

On Mon Jul 13, 2020 at 5:43 PM CEST, Leon Plickat wrote:
> By the way, if you have an interesting screenshot of LavaLauncher
> running on your pine phone, I'd be interested to see it.

I haven't yet even ran it on my pinephone, all my developpement has been 
done on my laptop's touchscreen. Once I have something I'll let you know 👍

[PATCH v3] Add multi finger touch support 28 days ago

From Nicolai Dagestad to ~leon_plickat/lavalauncher

---
I should have addressed all your comments.

I also found out that there is a region outside the first button in which 
it is possible to escape the launcher without it being seen as outside the
item (only with touch), but I don't think it is realated to this patch.


 src/input.c | 71 +++++++++++++++++++++--------------------------------
 src/seat.c  | 38 ++++++++++++++++++++++++++++
 src/seat.h  | 19 +++++++++++---
 3 files changed, 81 insertions(+), 47 deletions(-)

diff --git a/src/input.c b/src/input.c
[message trimmed]