Commit graph

717 commits

Author SHA1 Message Date
Anjandev Momi
d66e57384b sxmo_appmenu: add gnome chess
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-09-19 13:12:53 +02:00
Stacy Harper
e228f36f6e
fix sxmo_phonemenu number used
We were not shifting the cmd argument so we can only save "newcontact"
as phone number...
2021-09-18 12:26:57 +02:00
Stacy Harper
f41bf2aee6
Improve contact menu script
- Make it stopeabable with gesture or Esc
- Prefer printf over echo
2021-09-18 12:23:30 +02:00
Stacy Harper
af856d5bfa
Add x-scheme-handler/tel handler with a dedicated menu
This menu allow the user to

- call
- text
- save

The tel number.
2021-09-18 12:05:11 +02:00
Stacy Harper
87d86b7cf0
Allow phone number find in send text submenu
This allow the user to use a non formated phone number. We
split valid number check in a dedicated script to allow this.
2021-09-18 12:05:10 +02:00
Stacy Harper
55985a8f20 Rework the status bar
Goals of this patch :

- display the signal quality

I used a thermometer icon cause there is no available icon with a
filleable bar o_O

- display the currently used network technology (4g, 3g, etc...)

I used the mapping from:

https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/blob/master/include/ModemManager-enums.h#L220

Dylan also said:

Anything from POTS to GPRS = 2G
UMTS to EVDOB = 3G
LTE = 4G
5GNR = 5G

- display the modem infos when modemmonitor is disabled

We want to decorelate the modem monitor from the icon. We still want to
know easily if modem monitor is runing but we also want those modem
infos if not.

- simplify the modem state determination (no state file anymore)

The statusbar probe mmcli itself.

- fix the leading timer without call issue

This was caused by the "pgrep -f" command that was matching itself.
Using a simple "pgrep" looks good enough anyway.

- fix some sxmo_statusbar update spaming issues (vol control)

This one point took me a lot of time to findout a good solution. We want
the USR1 kill to be spamable without causing issue to the displayed bar.
We dont want mid rendered bar (half the icons).
We dont want empty bars (empty stdout line).

I use some variable to store pid, smart waits and a better trap function
to make it to works cleanly. Now we can spam statusbarupdate. Only the
last one will actually redraw the bar.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-09-12 19:59:03 +02:00
Maarten van Gompel
61451f6292
added a default audiostart hook to force output over main speaker and set a sane default volume
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-09-12 09:32:16 +02:00
Maarten van Gompel
b857198eb0 fix for bottomleft corner lock gesture (#361)
Fixes https://todo.sr.ht/~mil/sxmo-tickets/361

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-09-11 01:26:39 -04:00
Maarten van Gompel
c831d26773 fixed gesture names; a lot of gestures were erronously named corner rather than edge
This causes us to have both a 'bottomleftcorner' and 'leftbottomcorner',
the latter is now 'leftbottomedge' and is interpreted as 'a left swipe
along the bottom edge' while 'bottomleftcorner' is 'diagonal swipe from
the bottom left corner'.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-09-11 01:26:39 -04:00
~baroque0
35b312c0b8
added scripts/core/sxmo_sws.sh sway window switcher
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-09-06 14:01:31 +02:00
Peter John Hartman (wart)
00e495374d
bump up the number of lines in sxmo_dmenu.sh (see patch to sxmo-dmenu) 2021-09-06 13:56:39 +02:00
Maxim Karasev
f7698e4a25
Move operating system detection to sxmo_common
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-09-05 10:07:27 +02:00
Maxim Karasev
2e965453c1
Add USB Hotspot
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-09-05 10:04:45 +02:00
Stacy Harper
a5799bf351
Add a check before toggeling wm
Currently on 1.5.1, sway is not installed nor setted up. This WM toggle
entry cause a tty soft lock !

This fix this with a very too simple check but that will prevent this
case.
2021-09-04 10:44:02 +02:00
Stacy Harper
3c3c5f5b45 Hide border on Sway when only one window is present
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-09-04 03:33:58 -04:00
Stacy Harper
4571330df4 Add and setup nclutter-xfixes
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-09-01 18:58:48 +02:00
Stacy Harper
f9976df021 Prevent already existing modifiers to prevent view change
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-09-01 18:57:29 +02:00
Stacy Harper
2e6ce5c810 Fix layout dwm regression
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-09-01 18:57:22 +02:00
baroque
5b705dc91b
reduce notification spam in volume/brightness
Added a second parameter to notifications (actually a first, "app-name"), so they can be *grouped* when there is more than one, reducing the clutter on the screen, using the mako config parameter " group-by=app-name "

with proper quotes (i hope), case and cute icon ;)

added "group-by = app-name" directive in mako config

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-31 20:45:42 +02:00
Maxim Karasev
2c4da8fa0b
Make led blink more noticable
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-31 19:57:37 +02:00
Maxim Karasev
e4cc9a90a2
Use type:touch instead of DEVICE in swayinputevent in sxmo_wm
This fixes handling input with locked screen on non-pinephone devices.

I think really nobody would connect second touchscreen to a phone, so we
can assume there's only one we need.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-31 19:55:31 +02:00
Maxim Karasev
905b69ebf1
Make inputhandler execute command even if blinkled failed
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-31 16:52:30 +02:00
Maxim Karasev
1e20a2223b
Rename sxmo_setpineled.sh to sxmo_setled.sh, add bq-paella support
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-31 16:52:30 +02:00
Stacy Harper
7f39de55f0
move sway input/output to a dedicated file 2021-08-31 16:42:37 +02:00
Maxim Karasev
85e18743bf
Clean up sway config and add BQ Aquaris X5 support
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-31 16:42:36 +02:00
baroque
8f900c29f8 moved flashlight to main menu, out of "configuration" (that is crowded already)
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-30 22:26:13 +02:00
baroque
80c656f3ad added Marble in the apps.
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-30 22:25:58 +02:00
baroque
9e058e546d added || pkill sway after pkill dwm in "logout"
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-30 22:25:53 +02:00
Stacy Harper
f86cc46d03 Add a bemenu control mode to access bemenu control with buttons
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-30 22:22:43 +02:00
Maxim Karasev
d430cce8ff
Fix non-eg25 modems in modemmonitortoggle
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-30 08:11:10 +02:00
Maxim Karasev
2f6d84a857
Add sudo permissions needed for modemmanagertoggle
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-30 08:11:10 +02:00
Sam Bowlby
657fbd85ba
added new appmenu items; tests for wm for some apps
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-30 08:04:20 +02:00
Sam Bowlby
ac34711bc3
fixed appmenu for Foot shortcuts
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-29 15:06:34 +02:00
Maxim Karasev
2f0eb4ffe6
Drop "BATTERY_DEVICE" property in deviceprofiles
Isn't needed anymore as we now have reliable and universal battery
autodetection.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-29 13:59:15 +02:00
Maxim Karasev
6c161a11ca
Reliably autodetect battery device in statusbar
Wireless devices have "Wireless" type, so we search for nodes with type
"Battery". We also may handle wireless devices that way, if anyone needs
that.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-29 13:59:15 +02:00
Stacy Harper
df11b22b51
Add no spacing to bemenu 2021-08-28 09:31:19 +02:00
Maxim Karasev
1a1f40cc81
Change shebang to '/usr/bin/env sh' in sxmo_workspace.sh
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-27 22:45:19 +02:00
Stacy Harper
56f5658cc9 Larger bemenu cause keyboard scale correctly on landscape
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-27 11:12:59 +02:00
Martin Vahlensieck
8cb2cd43ec Replace tabs with spaces to line up usage
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-27 11:11:36 +02:00
Maarten van Gompel
d5139e4393
increased default font size for bemenu
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-27 07:37:41 +02:00
Stacy Harper
390a59c318 Fix sxmo_modemcall recent regressions
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-26 21:41:54 +02:00
Stacy Harper
103a6612f3 Fix autorotation script
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-26 20:42:51 +02:00
Stacy Harper
a1a6c3eb43 Set minimum brightness to 5%
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-26 12:40:47 +02:00
Stacy Harper
b94c16540f Switch wm without rebooting
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-26 12:39:00 +02:00
Stacy Harper
c014c6bb92 Load user .profile after setting up default values
This allow the user .profile to switch case depending on the default
values. It is mandatory by example to setup custom wvkbd or svkbd,
depending on the wm we use.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-26 12:38:53 +02:00
Maarten van Gompel
1ca8672473 minor syntax fix, quote var 2021-08-25 23:35:35 +02:00
Stacy Harper
829f8241c7
Add Arch handlers to manager daemons in sxmo_modemmonitortoggle 2021-08-25 21:51:02 +02:00
Stacy Harper
af733083c0
Make sxmo_modemmonitortoggle reset ospotent 2021-08-25 19:29:11 +02:00
Peter John Hartman (wart)
a8693545a4
Dialer menu should be with keyboard (so you can enter number).
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-25 19:29:10 +02:00
Peter John Hartman (wart)
b46a347d85
if the keyboard is open, 7 lines in horizontal and 23 lines in vertical is too much in order to enter data. This especially affects the Dialer and Text menus. I lowered the numbers.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-25 19:29:10 +02:00