Australia
Tinkerer :P
Devices I own:
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.
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
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]
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
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}
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]
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]
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]
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]
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]