Commit Graph

1868 Commits

Author SHA1 Message Date
Peter John Hartman
44bcaf718b fixup suspend: add battery wakeup
I was getting ghost wakeups *only* while plugged in, and isolated it to
the battery sending a wakeup which we weren't detecting.
2023-02-04 14:34:47 -06:00
Peter John Hartman
9051fd1caa contextmenu: firefox -> navigator 2023-02-04 14:32:55 -06:00
Willow Barraco
e5db81776f Add a simple mode to bluetooth menu
I'm very proud of this bluetooth menu. It allow us to manage our
connection with ease. But most of the time the only thing I want to do
is to connect to devices. Having this device dedicated submenu as extra
step, forward and backward, just to connect, is really annoying.

This add a simple mode to this bluetooth menu. It is enabled by default.
If you select a device with this mode on, you'll connect/disconnect
automatically without entering the device dedicated submenu. For this
workflows to be confortable, I also added paired/connected icons on the
the device entries.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-02-04 05:19:21 -06:00
Peter John Hartman
bed99f8702 fixup to checkforstucksms patch 2023-02-04 05:16:40 -06:00
Joshua Murphy
e7c9719d92 Fix typo in profile_template
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-02-04 05:14:26 -06:00
Peter John Hartman
dfdd087b56 sms: add warning if 'stuck' sms found
I found 10 sms in the 'receiving' mode from as far back as february.  I
guess this happens.
2023-02-03 15:24:48 -06:00
hazardchem
31724a5a03
xob: default config file
Config file for future xob replacement of dunst as audio and brightness
indicator.

Cloning and building:
https://github.com/florentc/xob
works and displays a bar the same way as wob.

Signed-off-by: hazardchem <pthom44@live.com.au>
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-02-03 15:54:19 +01:00
Peter John Hartman
45cf92da7b
sendsms: if bad number, delete from modem
Only would happen if we sent from the commandline, but still is
necessary.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-02-03 13:49:02 +01:00
Peter John Hartman
a58dd8c094
sms: add warning if 'stuck' sms found
I found 10 sms in the 'receiving' mode from as far back as february.  I
guess this happens.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-02-03 13:49:01 +01:00
Peter John Hartman
a7be5293f8
Add default font for svkbd.
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-02-03 13:49:00 +01:00
Peter John Hartman
9d2a64ecb1
suspend: add battery wakeup
I was getting ghost wakeups *only* while plugged in, and isolated it to
the battery sending a wakeup which we weren't detecting.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-02-03 13:43:15 +01:00
Peter John Hartman
7697937cd0
add sxmo_hook_notifications.sh
This will allow the user to decide what to do when there are or are not
notifications.  Default is the green led. Users already have control over other
led-behavior in sxmo_hook_lock/unlock/screenoff/postwake/presuspend.
They should also be able ot control whether, e.g., notification is green
or blinks or does nothing.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-02-03 13:43:14 +01:00
Peter John Hartman
cc8167d80a
mutex: move statusbar update out
Turning on debug, I noticed that every 8s or so, it'd try to free
everything in sxmo_hook_check_mutexes.sh, which would call
sxmo_mutex.sh:free() which would call flock, grep, cut, xargs, sed, etc.
Importantly, this would also call sxmo_hook_statusbar.sh lockedby, which
sucks up a lot of CPU.

I decided to move the statusbar update out of mutex, and hvae only one
update for all of check mutexes.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-02-03 13:34:19 +01:00
Peter John Hartman
158a499720
presuspend: close all notification popups
Moreso because I have a lot of userscripts that send popups, but its
kind of annoying to get stale or old notifications when I resume from
suspend.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-02-03 13:34:01 +01:00
Peter John Hartman
23acac9a4a
Move logs to old on start.
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-02-03 13:34:00 +01:00
Peter John Hartman
0734600fb6
background: move to var
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-02-03 13:33:59 +01:00
Peter John Hartman
c1aa7396ec
contextmenu: if no suspend toggled, updated status
Should update statusbar to indicate new lockedby status.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-02-03 13:33:59 +01:00
Willow Barraco
c36ace56de
update contextmenu_fallback hook trigger call 2023-02-02 00:28:21 +01:00
Willow Barraco
8edb83ef70
Fix shellspec
Do not shift when Included, cause for some reason, it fails.
2023-02-01 17:26:10 +01:00
Willow Barraco
ba1f48df07
Drop the stdin sxmo_status_spec test 2023-02-01 17:26:09 +01:00
Willow Barraco
d9abb19977
sxmo_status.sh: value can be empty 2023-02-01 17:05:30 +01:00
Willow Barraco
0c96dd249b
Update shellspec sxmo_status.sh 2023-02-01 17:02:45 +01:00
Willow Barraco
549da4b83d
fix sxmo_status.sh shellspecs
sxmo_status.sh do not usage on empty args
2023-02-01 17:02:44 +01:00
Willow Barraco
de87fdf427
Fix sxmo_status.sh subcommand usages 2023-02-01 17:02:44 +01:00
Willow Barraco
ff91df6b37
Fix lockedby status bar component 2023-02-01 16:50:01 +01:00
Stacy Harper
4a4e5cd6cc
move to sxmobar
This also alias sxmobar to the old adapted script in case the dependency
is missing. The api of sxmo_status.sh changed to be sxmobar compatible.
2023-02-01 16:42:21 +01:00
Anjandev Momi
42fb28ab08 version bump to 1.13.0 2023-01-28 15:33:53 -08:00
Peter John Hartman
ab0d14eb20 fix typo in contextmenu for modemmonitor 2023-01-26 11:20:30 -06:00
Stacy Harper
ddddba0a77
Do not focus the sms conversation if on ssh 2023-01-25 10:10:33 +01:00
Peter John Hartman
6882dbfef7
use sxmo_hook_stop.sh to cleanup files
Rather than in the start hook.  This is so when we logout/togglewm
we can have a fairly clean slate.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-01-25 10:07:25 +01:00
ArenM
27c663a896
Fix order of -maxdepth find argument
Gnu find outputs a warning if the maxdepth option appears after any
positional options, such as filtering files, because maxdepth also
affects options that come before it.

As a side note, maxdepth appears to be gnu extension that busybox picked
up, so we might want to be careful about using it.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-01-25 10:07:24 +01:00
Peter John Hartman
9b9a31e542
SXMO_DEFAULT_DRAFT change
I wanted to have no text at all when I start a text message, but setting
SXMO_DEFAULT_DRAFT="" resulted in the code thinking it was not set and
reverting back to the "Enter new text message here."  This change fixes
that.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-01-25 09:58:40 +01:00
Peter John Hartman
ec5576c4a3
text multiple numbers
I'm not sure if this has been a bug all along, or if it is a regression,
but this is necessary in order to reply to a text chain with multiple
numbers.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-01-25 09:58:40 +01:00
Peter John Hartman
8b34dd727b
log to our own file
This really makes things more sane for debugging.  Some noise gets lost,
but you can still always tail -f ~/local/state/superd/logs/* sxmo.log
tinydm.log to catch the context.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-01-25 09:58:39 +01:00
Peter John Hartman
05fe7fe122
pipe mpv errors in hooks to null
Removes some clutter -- this would show up in the compose window if you
use mpris and playerctl, which was ugly.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-01-25 09:58:38 +01:00
Peter John Hartman
ea07c11d61 sxmo_contacts: use existing vars
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2023-01-22 15:17:00 -08:00
Peter John Hartman
8bd1feb1cf give keyboard time to open
Sometimes the menu would open before keyboard in sxmo_menu_with_kb.sh.
Reproduce: from main menu, click texts.  A small pause is sufficient.
This is bad since then menu overlaps keyboard and you can't type esc
or numbers.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2023-01-22 15:15:25 -08:00
Stacy Harper
375bf69803
allow to open named numbers with spaces
This strip the "logfile" suffix cause it is a pain to strip and pretty
much useless for this menu anyway
2023-01-22 20:36:15 +01:00
Peter John Hartman
79f4132b32 call hooks: minor cleanup
The comments were wrong, and mute_ring was sending CONTACTNAME, which
was also wrong.
2023-01-19 19:43:33 -06:00
Peter John Hartman
7772091bfa minor fixup to missed call message
This fixes a bug with the hook (from a previous commit)
2023-01-19 19:38:09 -06:00
ArenM
f4e8a38eb4 Use superd for modemmonitor
Superd handles cleaning up any child processes we start, that logic can
be removed from this script. Using superd should also make this more
reliable, and provide better logging facilities.

Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-01-19 19:37:00 -06:00
ArenM
e3fd239295 Run statusbar asynchronously from lock state hooks
If the statusbar takes a while to run it will leave the system in an
inconsistent lock state, not waiting for the statusbar reduces the
amount of time we're in this state for.

This might be a slight performance improvement when switching through
multiple modes (e.g. screenoff to unlock) because the statusbar can take
a while to execute normally.

sxmo_daemons.sh is used to so that if the previous execution of the
statusbar is still running, it gets killed to avoid resource exhaustion.

Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2023-01-19 19:36:27 -06:00
Anjandev Momi
8aabe447e4 add missing pn -> pnc 2023-01-13 20:36:58 -08:00
noneofyourbusiness
5d9bc00912 replace 'pn' with 'pnc'
Signed-off-by: noneofyourbusiness <noneofyourbusiness@kolabnow.ch>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2023-01-13 20:36:58 -08:00
Peter John Hartman
ad5102f6e1 fixup: Add contextual menu on missed call
Small fixup for c5fea64dda
2023-01-09 06:11:50 -06:00
Stacy Harper
c5fea64dda Add contextual menu on missed call window to call or sms back
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2023-01-07 02:12:16 -08:00
Schimon Jehudah, Adv
c104da9b9b Add Falkon web browser
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2023-01-07 02:11:01 -08:00
Stacy Harper
a33060e144
double check to get rid of danglin purple blink (again) 2023-01-06 10:31:22 +01:00
Stacy Harper
5ed33e91cc
Add a conky superd service 2023-01-06 10:30:20 +01:00
Stacy Harper
55f79e98b9
allow WPA connection without passphrase 2023-01-06 10:30:20 +01:00