~aninternettroll

Norway

https://lucamatei.com/

hello

~aninternettroll/speedruncomapiv2-devel

Last active 1 year, 6 months ago

~aninternettroll/speedruncomapiv2-announce

Last active 1 year, 6 months ago
View more

Recent activity

[PATCH meta.sr.ht v2] templates: change use of <code> in <dd> tags with readonly textarea 6 months ago

From Luca Matei Pintilie to ~sircmpwn/sr.ht-dev

Some users experience copying whitespace with their text contents when
copying from a <dd></dd> tag. As such we replace those instances with a
readonly textarea.

Additionally fix mismatching <dd></dt> tags where they show up.

Signed-off-by: Luca Matei Pintilie <luca@lucamatei.com>
---

 Followup from 
 https://lists.sr.ht/~sircmpwn/sr.ht-dev/%3Cukvgro6xwwoc6z4w6zl6tfwqdqabn3cmseoq7ecixvovcqdq3u@4ewyjll4wkpa%3E

 metasrht/templates/oauth-personal-token.html         |  2 +-
 metasrht/templates/oauth-registered.html             |  4 ++--
[message trimmed]

[PATCH meta.sr.ht] templates: change use of <code> in <dd> tags with readonly textarea 6 months ago

From Luca Matei Pintilie to ~sircmpwn/sr.ht-dev

Some users experience copying whitespace with their text contents when
copying from a <dd></dd> tag. As such we replace those instances with a
readonly textarea.

Additionally fix mismatching <dd></dt> tags where they show up.
---
 I am not a sourcehut developer, so this testing was done very brifely
 in a container setup.

 https://git.sr.ht/~emersion/sr.ht-container-compose

 I've tested this as well as I could, but it is possible I missed
 something.
[message trimmed]

Re: [PATCH swayr] swayrbar: add styling module config options 6 months ago

From Luca Matei Pintilie to ~tsdh/public-inbox

On Mon, Jul 15, 2024 at 04:51:21PM GMT, Tassilo Horn wrote:
>And one can use pango (basic HTML) formatting, too, which allows for
>colorization, I think.
>
>So making all swaybar properties configurable would probably just add
>another way to add styling.  But ok, right now there's no way to affect
>the borders...

I was not aware of that, but I've taken a look and I'm not impressed.

>Wrt. dynamically changing the styling based on things like battery
>level: that's actually a good idea in theory and could be added right
>now where it makes sense (like the battery module).  However, it could
>probably look bad given that we have no clue about the general swaybar

Re: [PATCH swayr] swayrbar(cmd): clarify cmd module documentation 6 months ago

From Luca Matei Pintilie to ~tsdh/public-inbox

On Mon, Jul 15, 2024 at 10:42:11AM GMT, Tassilo Horn wrote:
>I'll fix that myself. :-)

Thanks! :D
--
Luca

[PATCH swayr] swayrbar(cmd): clarify cmd module documentation 6 months ago

From Luca Matei Pintilie to ~tsdh/public-inbox

Signed-off-by: Luca Matei Pintilie <luca@lucamatei.com>
---
 To be perfectly honest, I don't fully understand the feedback on the
 previous patch in regards to documentation. So besides some minor
 rewording I think I'll need more help.

 README.md | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 429b9e3..a302624 100644
--- a/README.md
+++ b/README.md
@@ -914,8 +914,11 @@ format](https://docs.rs/chrono/0.4.19/chrono/format/strftime/index.html#specifie
[message trimmed]

Re: [PATCH swayr v2] swayrbar: add cmd module 6 months ago

From Luca Matei Pintilie to ~tsdh/public-inbox

On Sun, Jul 14, 2024 at 09:53:38AM GMT, Tassilo Horn wrote:
>Hi Luca,
>
>>  Thanks for the feedback on my previous patch! The tip on `sh -c` in
>>  particular was great, and really tied up everything nicely.
>
>Applied and pushed.

\o/

>>  I also added some lines in the README.md about this new module that I
>>  had forgotten to do last time.
>
>Could you please improve the docs a bit?  It should at least say that

[PATCH swayr] swayrbar: add styling module config options 6 months ago

From Luca Matei Pintilie to ~tsdh/public-inbox

Allow the following options to be passed directly to swaybar-protocol(7)

- align
- min_width
- color
- background
- border
- border_top
- border_bottom
- border_left
- border_right
- urgent
- separator
- separator_block_width
[message trimmed]

[PATCH swayr v2] swayrbar: add cmd module 6 months ago

From Luca Matei Pintilie to ~tsdh/public-inbox

Add `cmd` module which can be used to run shell commands and display
their output.

Changes the behaviour of on_click configuration options to pass them
through `sh -c`.

Signed-off-by: Luca Matei Pintilie <luca@lucamatei.com>
---
 Thanks for the feedback on my previous patch! The tip on `sh -c` in
 particular was great, and really tied up everything nicely.

 I've decided against adding any parameters to the module at the moment.
 The `{pid}` argument can be taken with a "simple" shell command, such
 as
[message trimmed]

[PATCH swayr] swayrbar: add cmd module 7 months ago

From Luca Matei Pintilie to ~tsdh/public-inbox

Signed-off-by: Luca Matei Pintilie <luca@lucamatei.com>
---
 Hi, big fan of swayrbar! I've been using it for a couple of months now
 and one feature of Waybar I've been missing has been the "Idle
 Inhibitor" module
 
 https://github.com/Alexays/Waybar/wiki/Module:-Idle-Inhibitor
 
 As such the easiest way for me to implement this in swayrbar has been to
 run an external script that runs another program to idle inhibit.

 In particular I've set it up with the following config and scripts to
 run wayland-idle-inhibitor
[message trimmed]

[PATCH v2] Fix version check in case of an empty string 10 months ago

From Luca Matei Pintilie to ~ihabunek/toot-discuss

Some mastodon implementations (GoToSocial) will return `version: ""`, in
which case checking for the major version won't work.

This is why an extra check has to be added, and default to 0 as the
"major" version.
---
Previous version didn't quote the "0", so ch.isnumeric() failed
 toot/tui/app.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/toot/tui/app.py b/toot/tui/app.py
index 8278ef7..1fcfd41 100644
--- a/toot/tui/app.py
+++ b/toot/tui/app.py
[message trimmed]