~hazardchem

Australia

Tinkerer :P

Devices I own:

  • Asus TUF Gaming FX506I running Alpine Linux
  • PinePhone 1.2b running sxmo pmOS
  • iPhone 10
  • PineTime

Recent activity

Re: [PATCH v2 sxmo-utils] sxmo_wm.sh: fix fringe cases in focused program 28 days ago

From hazardchem to ~mil/sxmo-devel

Only way around this might be evaluating both and testing to see if they are
in the contextmenu list and display the first matching, otherwise default to
display default menu.

Only way I can see getting around this issue.

Re: [PATCH sxmo-utils 2/2] app: tabbed 28 days ago

From hazardchem to ~mil/sxmo-devel

On Wed, Aug 21, 2024 at 02:54:20PM -0400, Aren wrote:
> On Sun, Jul 21, 2024 at 09:04:15PM GMT, hazardchem wrote:

> 
> This can be simplified by rewriting it like this:
> 
> selected="$(sxmo_dmenu.sh -p "Tabbed Embed" <<-EOF
> 	$OPTIONS
> 	Nothing
> 	Close
> EOF
> )"
> 
> I don't see a reason not to include $OPTIONS directly here too, since it

[PATCH v2 sxmo-utils] app: tabbed 28 days ago

From hazardchem to ~mil/sxmo-devel

Added tabbed to sxmo_hook_apps.sh by calling sxmo_tabbed.sh

sxmo_tabbed.sh:

This program provides a list of programs with their embedded call and
will start a tabbed session with that program inside, or nothing starts
a tabbed session with nothing inside.

Signed-off-by: hazardchem <hazardchem@disroot.org>
---

v2 - Amended menu call to improve readability and remove any whitespace.
Also included zathura in the list
[message trimmed]

Re: [PATCH sxmo-utils v2 2/2] autodetect SXMO_DISABLE_LEDS a month ago

From hazardchem to ~mil/sxmo-devel

Looks good, compiles and runs on my PP.

Still a noticable delay with the switching off multiple colours
but it isn't as noticable compared to previous

Re: [PATCH sxmo-utils 2/2] autodetect SXMO_DISABLE_LEDS a month ago

From hazardchem to ~mil/sxmo-devel

I concur with Stace on this, now the led has a slight delay when switching off
multicoloured.

Also I think the below should be in it's own patch has that would be beneficial
even if this doesn't get merged

> programs/%: programs/%.c
>-	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $<
>+	# TODO: we only need -lm for sxmo_status_led
>+	$(CC) -Wall $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -lm -o $@ $<
> 
> clean:
>-	rm -f programs/sxmo_aligned_sleep programs/sxmo_sleep programs/sxmo_vibrate
>+	rm -f ${PROGRAMS}

[PATCH sxmo-utils 2/2] app: tabbed 2 months ago

From hazardchem to ~mil/sxmo-devel

Added tabbed to sxmo_hook_apps.sh by calling sxmo_tabbed.sh

sxmo_tabbed.sh:

This program provides a list of programs with their embedded call and
will start a tabbed session with that program inside, or nothing starts
a tabbed session with nothing inside.

Signed-off-by: hazardchem <hazardchem@disroot.org>
---
 configs/default_hooks/sxmo_hook_apps.sh |  2 ++
 scripts/core/sxmo_tabbed.sh             | 17 +++++++++++++++++
 2 files changed, 19 insertions(+)
 create mode 100755 scripts/core/sxmo_tabbed.sh
[message trimmed]

[PATCH sxmo-utils 1/2] contextmenu.sh: fixed issue with tabbed menu sending Ctrl + ` 2 months ago

From hazardchem to ~mil/sxmo-devel

Signed-off-by: hazardchem <hazardchem@disroot.org>
---
 configs/default_hooks/sxmo_hook_contextmenu.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/default_hooks/sxmo_hook_contextmenu.sh b/configs/default_hooks/sxmo_hook_contextmenu.sh
index c83ac08d..e1cef897 100755
--- a/configs/default_hooks/sxmo_hook_contextmenu.sh
+++ b/configs/default_hooks/sxmo_hook_contextmenu.sh
@@ -784,7 +784,7 @@ case "$WMCLASS" in
			$icon_arr Next Tab           ^ 1 ^ sxmo_type.sh -M Ctrl -M Shift -k l
			$icon_arl Move Tab Left      ^ 1 ^ sxmo_type.sh -M Ctrl -M Shift -k j
			$icon_arr Move Tab Right     ^ 1 ^ sxmo_type.sh -M Ctrl -M Shift -k k
			$icon_mnu Menu Prompt        ^ 0 ^ sxmo_type.sh -M Ctrl -k \`
[message trimmed]

[PATCH sxmo-utils 5/5] sxmo_hook_contextmenu.sh: tabbed: add menu options 3 months ago

From hazardchem to ~mil/sxmo-devel

Signed-off-by: hazardchem <hazardchem@disroot.org>
---
 configs/default_hooks/sxmo_hook_contextmenu.sh | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/configs/default_hooks/sxmo_hook_contextmenu.sh b/configs/default_hooks/sxmo_hook_contextmenu.sh
index be5e2eb..9b856c1 100755
--- a/configs/default_hooks/sxmo_hook_contextmenu.sh
+++ b/configs/default_hooks/sxmo_hook_contextmenu.sh
@@ -776,6 +776,19 @@ case "$WMCLASS" in
		"
		WINNAME=Mupdf
		;;
	*tabbed*)
[message trimmed]

[PATCH sxmo-utils 4/5] sxmo_hook_contextmenu.sh: mupdf: add menu options 3 months ago

From hazardchem to ~mil/sxmo-devel

Signed-off-by: hazardchem <hazardchem@disroot.org>
---
 .../default_hooks/sxmo_hook_contextmenu.sh    | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/configs/default_hooks/sxmo_hook_contextmenu.sh b/configs/default_hooks/sxmo_hook_contextmenu.sh
index f7eba3f..be5e2eb 100755
--- a/configs/default_hooks/sxmo_hook_contextmenu.sh
+++ b/configs/default_hooks/sxmo_hook_contextmenu.sh
@@ -757,6 +757,25 @@ case "$WMCLASS" in
		"
		WINNAME=Acme
		;;
	*mupdf*)
[message trimmed]

[PATCH sxmo-utils 3/5] sxmo_hook_contextmenu.sh: badwolf: fix spacing on reset zoom 3 months ago

From hazardchem to ~mil/sxmo-devel

Signed-off-by: hazardchem <hazardchem@disroot.org>
---
 configs/default_hooks/sxmo_hook_contextmenu.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/default_hooks/sxmo_hook_contextmenu.sh b/configs/default_hooks/sxmo_hook_contextmenu.sh
index 621c544..f7eba3f 100755
--- a/configs/default_hooks/sxmo_hook_contextmenu.sh
+++ b/configs/default_hooks/sxmo_hook_contextmenu.sh
@@ -730,7 +730,7 @@ case "$WMCLASS" in
		CHOICES="
			$icon_tab New Tab           ^ 0 ^ sxmo_type -M Ctrl -k t
			$icon_cls Close Tab         ^ 0 ^ sxmo_type -M Alt -k d
			$icon_fnd Reset Zoom^ 0 ^ sxmo_type -M Ctrl -k 0
[message trimmed]