Commit Graph

1846 Commits

Author SHA1 Message Date
ArenM
7f921ae30f Fix editorconfig configuration file
`ec` was previously silently ignoring these because the format of the
config file was broken.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2023-05-14 00:10:59 -07:00
Willow Barraco
cbf794c996 BEMENU_OPTS: add background color 2023-05-12 08:42:46 +02:00
Willow Barraco
e26825b803 BEMENU_OPTS: support fixed height and borders 2023-05-12 08:42:45 +02:00
Willow Barraco
dac8842c97 BEMENU_OPTS: use name args, re-order, default lines 16 2023-05-12 08:42:45 +02:00
Willow Barraco
3338bec056 Increase dmenu line so that appmenu is complete 2023-05-12 08:42:44 +02:00
hazardchem
ed62f3183b sxmo_hook_contextment.sh: Add menu options for Alacritty
Signed-off-by: hazardchem <pthom44@live.com.au>
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-05-08 04:52:56 -05:00
Zach DeCook
237fc4e370 docs: Document sxmo_hookmenu.sh as simpler way of editing hooks.
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-05-08 04:52:56 -05:00
ArenM
01219deadf Fix broken printf statements in modemtext
Gnu printf interprets these to be arguments instead of a format string
which breaks sending mms.

Also ATTACHMENTS_ARG was being overwritten make_attachments_arg causing
messages to not have the description included, only the attachment.

Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-05-08 04:52:56 -05:00
ArenM
b2c3d97760 Don't kill tailtextlog when changing recipients
The lsof / grep call is broken and causes the script to crash when
adding or removing a recipient.

Lsof also doesn't have a stable output format, and the format is
different between the busybox and gnu versions, so we shouldn't be
trying to parse the output of it.

Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-05-08 04:52:56 -05:00
Willow Barraco
f5dd68bc75 Reset sxmo_run_periodically.sh wait first feature 2023-04-28 11:57:53 +02:00
ArenM
2691b8cca6 Refactor presuspend checks to run infrequently
autosuspend calls the presuspend check when the kernel locks are clear,
and it hasn't been called recently. If we always call it, there's a risk
that running all checks could take too long and we'll fail to suspend
often.

Successfully exiting means that there is nothing going on, so the system is
free to suspend within a reasonable timeframe (something like < 10 seconds).

All the checks currently use the (default) delay wait mechanism, but I
would like to try to write others. For example `playerctl -F` could be
used when playerctl is blocking suspend. Unfortunately managing spawned
jobs and race conditions is harder than it seems at first glance.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-04-28 11:39:32 +02:00
ArenM
ce6514d490 check SXMO_WM instead of tinydm session when logging out
This could break if someone decides not to use tinydm, or uses
tinyd-set-session instead of togglewm.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2023-04-23 19:29:39 -07:00
Willow Barraco
4da4bb9b1e Display multiple power status bar icons again
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2023-04-23 19:25:53 -07:00
Jan Wagemakers
3b771cf697 add device profile for shiftphone shift6mq (shift,axolotl)
This device profile makes the power and volume keys work on my shiftphone shift6mq.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2023-04-23 18:57:42 -07:00
Peter John Hartman
6d4565eec3 documentation 2023-04-04 12:32:37 -05:00
Peter John Hartman
e8ddbc8aac major revision of sxmo(7) manpage
This revision changes things to refer to shell script for hooks not
manpages. I think manpages will just introduce problems. Instead, the
proposal is to have each hook include its own documentation in comments
at the start of it, and refer the viewer back to the section in the
sxmo(7) manpage where that hook is discussed.

This is unfinished but pushing it.

Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-04-04 10:55:31 -05:00
Peter John Hartman
7965c0c2e0 Rename $OS to $SXMO_OS. 2023-04-04 10:55:18 -05:00
Peter John Hartman
2f2a4b21de initial sxmo(7) man page
This is basically a conversion of USERGUIDE.md. Pushing this now for
comment on the structure.  The idea is to have each of our hooks as
its own man page (e.g., sxmo_hook_sms(1) and so on). And then we'd
also have "bigger" scripts have their own man pages, e.g.,
sxmo_files(1), sxmo_rtcwake(1), sxmo_notifications(1).

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-04-03 10:25:48 +02:00
Peter John Hartman
cd394d3875 Previously sms messages were not guaranteed to be formatted with the
country code if the carrier didn't provide it. This forces it to use the
DEFAULT_COUNTRY variable if set.

(Thanks to Kyle Eveleth.)
2023-04-02 23:05:01 -05:00
ArenM
f630b2bbdb sxmo_status.sh add locking
Watch was spitting out no such file or directory errors, that I think
were caused by a race between updating the status bar, and removing
items.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-03-31 19:29:15 +02:00
Willow Barraco
75cf104db3 sxmo_run_periodically.sh avoid spaming kill errors 2023-03-30 17:40:26 +02:00
Willow Barraco
ea27c8d785 Avoid crazy edge case if the first wake lock checker is delayed 2023-03-30 17:40:26 +02:00
Willow Barraco
08f7320205 Avoid wakelock expiration if the check take much time
Never happend before but it is definitely possible that the 30s duration
could expire if the following trigger take longer than 20s. By example
in case of network issue.

The goal of this default duration is to avoid stucked wake
locks, even if this could theorically not happen anyway. So let's use a
big value to avoid causing troubles.
2023-03-30 17:24:00 +02:00
Willow Barraco
75e7c33209 Fix sxmo auto suspend when mpv is playing
A mpv instance is a inhibit idle for the WM. It means that we
should not rely on sxmo_idle.sh to start and stop the periodic wake lock
checker.

Instead we should just periodically run them.
2023-03-30 17:22:44 +02:00
Willow Barraco
c888c90301 sxmo_hook_tailtextlog: use common colors
Dunno why we used 033 and 245, I'd prefer to stick to basic green and orange
2023-03-29 21:04:21 +02:00
Willow Barraco
856905c7ae Add a sxmo_brun.sh to run binaries 2023-03-29 21:04:18 +02:00
Willow Barraco
2b1dde63ae Manage and migrate user Xresources
This file was not bumped on new version. This can cause issue, by
example with our recent font change.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-03-29 09:24:44 -05:00
Peter John Hartman
4d9e408bae statusbar: change state icons
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-03-29 15:06:14 +02:00
Peter John Hartman
25ccec4417 statusbar: battery if low
If low, then expand battery experience (saw this on a phone once)

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-03-29 15:06:13 +02:00
Peter John Hartman
6d894f95ee statusbar: battery icons
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-03-29 15:06:13 +02:00
Peter John Hartman
e33626f838 statusbar: Overhaul 2023-03-26 15:23:02 +02:00
Willow Barraco
6068ef44c3 Fix default conky config 2023-03-26 15:23:02 +02:00
Peter John Hartman
dd7217f16b fixup: set sway font size 2023-03-24 13:12:14 -05:00
Willow Barraco
db0cbac8ab Add an explicit "None" choice while adding wpa network passphrase
And refactorise those menu choices computing…

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-03-23 13:45:40 -05:00
Peter John Hartman
f8c9138739 dialer: don't show group contacts
There's no need since you can't *dial* them, and it makes narrow-as-you-type searches annoying.
2023-03-23 13:42:44 -05:00
Peter John Hartman
10371a66c0 callaudio hook (take two)
This implements simple hooks when we enable / disable callaudio. The
"hack" in our current code is pretty specific to pinephone, and I think
that users might also want to, e.g., bump volume when receiving phone
call, or otherwise tweak some sound settings.
2023-03-23 13:42:44 -05:00
Zach DeCook
a3d27b5881 Gestures for VTE: Don't push up/down when dragging scrollbar
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-03-23 13:42:44 -05:00
Zach DeCook
a497b41a2e Context Menu: Treat gtk4-vte3 the same as vte3
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-03-23 13:42:44 -05:00
Zach DeCook
b7812dce93 Apps: Add Secrets and vte3-gtk4
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-03-23 13:42:44 -05:00
Willow Barraco
f3b5128e14 Add waydroid shortcut
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-03-23 13:42:44 -05:00
Willow Barraco
342a371aed Make modem crash notification less persistent
The user probably missed the wake up anyway. Sticking the message just
is confusing.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-03-23 13:42:44 -05:00
Willow Barraco
b730f4562f Use a single font: deja vu mono nerd font
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-03-23 13:42:43 -05:00
Willow Barraco
92eab557ae Fix existing migration with non shell hooks
they could be binaries anyway
2023-03-21 09:54:06 +01:00
Willow Barraco
acd9850577 Do not migrate non sh scripts 2023-03-21 09:47:49 +01:00
Willow Barraco
6b178764d8 sxmo_hook_scripts.sh: handle directory symlink 2023-03-12 08:17:24 +01:00
Peter John Hartman
be0bb09739 cleanup check_state_mutex (rename to wakelock)
Mostly a cleanup. We now have sxmo_wakeup.sh so the hook should bear
that name somehow (although sxmo_hook_suspendblockers might fit too)

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-03-12 08:17:23 +01:00
ArenM
5eb481d474 start periodic_blink immediately after screenoff
There is already a single blink when the screen is turned off, and then
we wait for 5 seconds instead of the normal 2 before starting the
repeating blink. This replaces that with a single call to start the
repeating blink.

Also remove comments about dangling blinks, as they're always used now.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-03-12 08:17:22 +01:00
Willow Barraco
e32e12637b sxmo_audio.sh move close menu at the the top 2023-03-10 13:00:15 +01:00
Peter John Hartman
08a8b15a96 networks: move close to top
If you have a lot of wifi networks, its very annoying to have to scroll
to the bottom or swipe up to close (swiping up might activate a
different network).

Maybe we give more of a gap between top of screen and menus?

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-03-10 13:00:15 +01:00
Peter John Hartman
9cadb17a1d treat all messages from firmware as sms
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-03-10 13:00:14 +01:00