~anjan

~

https://momi.ca

~anjan/public-inbox

Last active 11 months ago

~anjan/fedi-go

Last active 1 year, 2 months ago

~anjan/lift

Last active 1 year, 2 months ago
View more

Recent activity

[PATCH sxmo-utils] modemmonitor: fixed no contact name displayed in notifications and new folders without + a month ago

From Anjandev Momi to ~mil/sxmo-devel

---
 scripts/modem/sxmo_modemmonitor.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/scripts/modem/sxmo_modemmonitor.sh b/scripts/modem/sxmo_modemmonitor.sh
index d2293cb..6e06ae2 100755
--- a/scripts/modem/sxmo_modemmonitor.sh
+++ b/scripts/modem/sxmo_modemmonitor.sh
@@ -47,7 +47,7 @@ checkformissedcalls() {
			mkdir -p "$LOGDIR"
			printf %b "$TIME\tcall_missed\t$MISSEDNUMBER\n" >> "$LOGDIR/modemlog.tsv"

			CONTACT="$(sxmo_contacts.sh | grep -E "^$MISSEDNUMBER")"
			CONTACT="$(sxmo_contacts.sh | grep -E "^\\$MISSEDNUMBER")"
[message trimmed]

[PATCH sxmo-utils] camera: update constants for new alpine update a month ago

From Anjandev Momi to ~mil/sxmo-devel

---
 scripts/core/sxmo_camera.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/core/sxmo_camera.sh b/scripts/core/sxmo_camera.sh
index 3ff777a..6980015 100755
--- a/scripts/core/sxmo_camera.sh
+++ b/scripts/core/sxmo_camera.sh
@@ -1,9 +1,9 @@
#!/usr/bin/env sh
REAR_NODE="ov5640 3-004c"
REAR_LINK='"gc2145 3-003c":0->"sun6i-csi":0'
REAR_NODE="ov5640 4-004c"
REAR_LINK='"gc2145 4-003c":0->"sun6i-csi":0'
[message trimmed]

[PATCH sxmo-docs] documented argument $1 for ring and sms hooks a month ago

From Anjandev Momi to ~mil/sxmo-devel

---
 USERGUIDE.md | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/USERGUIDE.md b/USERGUIDE.md
index 8a29cf0..508ca7c 100644
--- a/USERGUIDE.md
+++ b/USERGUIDE.md
@@ -342,11 +342,17 @@ refer to [the changelog](https://git.sr.ht/~mil/sxmo-docs/tree/master/CHANGELOG.
    </tr>
    <tr>
      <td>$XDG_CONFIG_HOME/sxmo/hooks/ring</td>
      <td>Executable script to run when the phone is receiving a call / rings</td>
      <td>
[message trimmed]

[PATCH sxmo-docs] documented sms hook a month ago

From Anjandev Momi to ~mil/sxmo-devel

---
 USERGUIDE.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/USERGUIDE.md b/USERGUIDE.md
index fec9194..8a29cf0 100644
--- a/USERGUIDE.md
+++ b/USERGUIDE.md
@@ -344,6 +344,10 @@ refer to [the changelog](https://git.sr.ht/~mil/sxmo-docs/tree/master/CHANGELOG.
      <td>$XDG_CONFIG_HOME/sxmo/hooks/ring</td>
      <td>Executable script to run when the phone is receiving a call / rings</td>
    </tr>
    <tr>
      <td>$XDG_CONFIG_HOME/sxmo/hooks/sms</td>
[message trimmed]

[PATCH sxmo-svkbd] added alt to main menu, moved ;: to second menu 2 months ago

From Anjandev Momi to ~mil/sxmo-devel

This adds emacs support to sxmo
---
 layout.sxmo.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/layout.sxmo.h b/layout.sxmo.h
index 1ee74bc..ea8a3f8 100644
--- a/layout.sxmo.h
+++ b/layout.sxmo.h
@@ -23,7 +23,7 @@ static Key keys_en[40] = {
        { 0, XK_j, 1 },
        { 0, XK_k, 1 },
        { 0, XK_l, 1 },
        { ";:", XK_colon, 1 },
[message trimmed]

[PATCH sxmo-utils] files: play mkv files in mpv 2 months ago

From Anjandev Momi to ~mil/sxmo-devel

---
 scripts/appscripts/sxmo_files.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/appscripts/sxmo_files.sh b/scripts/appscripts/sxmo_files.sh
index 9e48471..924bd9a 100755
--- a/scripts/appscripts/sxmo_files.sh
+++ b/scripts/appscripts/sxmo_files.sh
@@ -4,7 +4,7 @@ DIR="$1"
cd "$DIR" || exit 1

handlefiles() {
	if echo "$1" | grep -iE ".(webm|ogg|mp4|mov|avi)$"; then
	if echo "$1" | grep -iE ".(webm|ogg|mp4|mov|avi|mkv)$"; then
[message trimmed]

[PATCH sxmo-utils] camera: low latency preview and picture 2 months ago

From Anjandev Momi to ~mil/sxmo-devel

- Take pictures by pressing "s" when the preview opens.
- Depends on sxmo_autorotate.sh
- movie is not currently working. See comments in code
- uses sxiv for image previews of photos taken during that photoshoot
- TODO: use sxiv keyhandlers to add a delete photo function
	- See: /usr/share/examples/sxiv/key-handler
	- I dont know how we would distribute this
---
 scripts/core/sxmo_appmenu.sh |   1 +
 scripts/core/sxmo_camera.sh  | 147 +++++++++++++++++++++++++++++++++--
 scripts/core/sxmo_xinit.sh   |   1 +
 3 files changed, 143 insertions(+), 6 deletions(-)

diff --git a/scripts/core/sxmo_appmenu.sh b/scripts/core/sxmo_appmenu.sh
[message trimmed]

[PATCH sxmo-utils v5] Added autorotate using accelerometer script 2 months ago

From Anjandev Momi to ~mil/sxmo-devel

---
 scripts/core/sxmo_appmenu.sh    |  3 ++-
 scripts/core/sxmo_autorotate.sh | 36 +++++++++++++++++++++++++++++++++
 scripts/core/sxmo_rotate.sh     | 11 +++++++++-
 3 files changed, 48 insertions(+), 2 deletions(-)
 create mode 100755 scripts/core/sxmo_autorotate.sh

diff --git a/scripts/core/sxmo_appmenu.sh b/scripts/core/sxmo_appmenu.sh
index fd40ba8..16cdf34 100755
--- a/scripts/core/sxmo_appmenu.sh
+++ b/scripts/core/sxmo_appmenu.sh
@@ -63,7 +63,8 @@ programchoicesinit() {
			Bar Toggle                 ^ 1 ^ key Alt+b
			Invert Colors              ^ 1 ^ xcalib -a -invert
[message trimmed]

[PATCH sxmo-utils v4] Added autorotate using accelerometer script 2 months ago

From Anjandev Momi to ~mil/sxmo-devel

---
 scripts/core/sxmo_appmenu.sh    |  3 ++-
 scripts/core/sxmo_autorotate.sh | 34 +++++++++++++++++++++++++++++++++
 scripts/core/sxmo_rotate.sh     | 11 ++++++++++-
 3 files changed, 46 insertions(+), 2 deletions(-)
 create mode 100755 scripts/core/sxmo_autorotate.sh

diff --git a/scripts/core/sxmo_appmenu.sh b/scripts/core/sxmo_appmenu.sh
index fd40ba8..16cdf34 100755
--- a/scripts/core/sxmo_appmenu.sh
+++ b/scripts/core/sxmo_appmenu.sh
@@ -63,7 +63,8 @@ programchoicesinit() {
			Bar Toggle                 ^ 1 ^ key Alt+b
			Invert Colors              ^ 1 ^ xcalib -a -invert
[message trimmed]

Re: [PATCH sxmo-utils] youtube: keep search history 2 months ago

From Anjandev Momi to ~mil/sxmo-devel

Miles Alan <m@milesalan.com> writes:

>> +	HISTORY="$(tac "$HISTORY_FILE" | nl | sort -uk 2 | sort -k 1 | cut -f 2)"
>
> Can you elaborate on the purpose of this sorting? Just using tac alone
> seems like the simple solution here?

Suppose you search for the same item multiple times. Sorting and
sorting unique would ensure that the search term only appears once in
your "previously searched".

-- 
w:] www.momi.ca