Commit graph

345 commits

Author SHA1 Message Date
Maarten van Gompel
ace9960926 Made choice for virtual keyboard configurable through the $KEYBOARD environment variable.
This implements what was suggested in the discussion regarding the svkbd
patch, it makes the choice of virtual keyboard configurable using the
$KEYBOARD variable, rather than hard-coding it.
2020-07-26 10:22:31 -05:00
Julian P Samaroo
293bf69871 Add Power menu to appmenu
Signed-off-by: Miles Alan <m@milesalan.com>
2020-07-23 16:59:03 -05:00
Miles Alan
c100262d4f Remove shellcheck error in sxmo_appmenu.sh 2020-07-23 16:49:51 -05:00
Miles Alan
3e23624651 Fix typo in sxmo_modemtext.sh 2020-07-23 16:45:15 -05:00
Anjandev Momi
92c368c01f allow texting over ssh terminal
Signed-off-by: Miles Alan <m@milesalan.com>
2020-07-23 16:44:09 -05:00
Miles Alan
f3275b7cd7 After exiting suspend blink LED while in temporary suspend pending state 2020-07-21 21:40:56 -05:00
Maarten van Gompel
bfdbe29c0b added deeper context menus for vim/vis, nano, tuir, ncmpcpp, w3m
This patch looks at whatever application is running inside the st terminal.
and presents a more fine-tuned context menu based on it. It does so by
parsing WM_NAME.

Supported for the moment: vim/vis, nano, tuir, ncmpcpp, w3m

This probably won't work if you're in a terminal multiplexer like
screen/tmux, unless it's configured to propagate the name of running
application.

This patch is to be applied **after** my patch for feh/sxiv from earlier today (not included in this patch)

Signed-off-by: Miles Alan <m@milesalan.com>
2020-07-19 21:24:08 -05:00
Miles Alan
03025fae5d Delete exit entries from Sxiv / Feh - this should be done via btns or globally 2020-07-18 18:09:50 -05:00
Miles Alan
36520d487e Change ring hook location to ~/.config/sxmo/hooks/ring 2020-07-18 10:38:28 -05:00
Dmytro
9378530a1b Ringing sound configurable
Signed-off-by: Miles Alan <m@milesalan.com>
2020-07-18 10:38:28 -05:00
Anjandev Momi
92e185b888 Add XDG user directories and env variables
This patch adds the rest of XDG user directories as per XDG base directory
specification.

https://wiki.archlinux.org/index.php/XDG_Base_Directory

This fixes launching anbox on sxmo. Furthermore, it makes sure $XDG_RUNTIME_HOME
has the correct permissions.

Signed-off-by: Miles Alan <m@milesalan.com>
2020-07-18 10:38:22 -05:00
Maarten van Gompel
d4cb102c85 added app context menu for feh and sxiv (image viewers)
Signed-off-by: Miles Alan <m@milesalan.com>
2020-07-18 10:15:19 -05:00
Miles Alan
5c4c6c15e2 Refactor xinit to be more structured and set $EDITOR if unset to vis 2020-07-18 10:14:58 -05:00
Miles Alan
d2ee25d724 Allow viewing cached RSS feeds via toggling on/off fetch option 2020-07-17 22:43:29 -05:00
Miles Alan
92e048a153 Screenlock: Recognize keyrelease rather than keydown to avoid inadvertent exits
E.g. so now you distinctively have to press down the powerbutton three times
rather than holding (which is easy to do inadvertently in pocket) to exit
screenlock.
2020-07-15 21:47:50 -05:00
Stephen Paul Weber
a50f1d3093 Allow easily searching in the page from surf menu
Signed-off-by: Miles Alan <m@milesalan.com>
2020-07-12 21:10:14 -05:00
Miles Alan
579503ee1f Add udev rules to update status bar plugging in / unplugging charger 2020-07-12 19:29:49 -05:00
Miles Alan
0801bb1adb Restructure configs into seperate folder 2020-07-12 19:29:46 -05:00
Miles Alan
d713b19199 Use sxmo_statusbarupdate.sh script instead of direct calls duplicated logic 2020-07-12 11:38:31 -05:00
Miles Alan
10705f08cd Update statusbar on waking up from deep sleep so battery % & time accurate 2020-07-12 11:32:04 -05:00
Miles Alan
87c99ec024 Use USR1 signal instead of update file for updating statusbar 2020-07-12 11:32:02 -05:00
Miles Alan
f448f3c444 Source rather than just run the user's custom xinit file; allows exporting ENV 2020-07-11 09:53:18 -05:00
Miles Alan
4fe129882d Fix weather hourly forecast time for <12hr times 2020-07-11 09:53:18 -05:00
Miles Alan
383c52380f 5s timeout for StateSuspendPending 2020-07-11 09:53:15 -05:00
Anjandev Momi
fe24fec53d make files dmenu case insensitive
Signed-off-by: Miles Alan <m@milesalan.com>
2020-07-09 22:18:24 -05:00
Miles Alan
a35ca3f39f screenlock - Sort functions alphabetically; add declarations; and fix warnings 2020-07-09 21:17:11 -05:00
Miles Alan
b51644baca screenlock - Implement StateSuspendPending so exiting CRUST requires 3 clicks
If you don't triple click after exiting deep sleep after 10s, use select() with
timeout to kick back into deep sleep.
2020-07-09 20:51:50 -05:00
Anjandev Momi
0013ea3d73 files: if folder name longer than 7 characters, truncate
Signed-off-by: Miles Alan <m@milesalan.com>
2020-07-09 20:51:30 -05:00
Anjandev Momi
a245f46914 screenlock: enable rtc wakeup source
Please apply to the crust feature branch. The rtc wakeup clock is useful cause it allows
users to script programs. If I put my phone into deep sleep, none of the scripts
I put in my cronjob will run.

For example, if I have an alarm script:

https://git.sr.ht/~anjan/sxmo-userscripts/tree/master/alarm.sh

It is supposed to run at 7:00 am but since I put my phone in deep sleep before going to sleep,
the script doesnt play sound to wake me up.

Enabling the rtc wakeup clock enables using programs like rtcwake as a wrapper around
your cronjobs to wake up the phone at a time and excecute the command you put in cron.

For info on how to use rtcwake, see:
https://wiki.postmarketos.org/wiki/Nokia_N900_(nokia-n900)#Setting_the_hardware_alarm_clock

Not sure if we should patch busybox cron to use rtcwake automatically or whether we should
trust the user to use rtcwake properly and document it. However, I am certain that the rtc
wakeup source should be enabled for this usecase.

Signed-off-by: Miles Alan <m@milesalan.com>
2020-07-09 20:51:30 -05:00
Miles Alan
cf4cd1b8df Retain brightness when entering screenlock 2020-07-09 20:51:30 -05:00
Miles Alan
7b3be0453a Disable buggy bluetooth driver before entering suspend 2020-07-09 20:51:30 -05:00
Miles Alan
aa8513ba84 Use direct open/write/close instead of stdlib calls for device IO 2020-07-09 20:51:30 -05:00
Miles Alan
37941f6ba8 Always reconfigure wakeup sources before entering suspend 2020-07-09 20:51:30 -05:00
Miles Alan
be6737e68f Always wake up from suspend to StateNoInput 2020-07-09 20:51:30 -05:00
Miles Alan
4d9d1ec45d Modify screenlock to suspend on triple pressing volume down button
Led indicators as follows:
  Blue: Screenlocked
  Purple: Screenlocked and Screenoff
  Red: CRUST suspend
2020-07-09 20:51:30 -05:00
Miles Alan
f25bb821ba Fix loop for sxmo_weather.sh 2020-07-09 18:40:02 -05:00
Miles Alan
57f6e5897e Loop reddit script and use URL handler script with fork 2020-07-09 18:26:10 -05:00
Miles Alan
7a9ec120e1 Fork urlhandler program if run with fork option and pass opt in RSS script 2020-07-09 18:22:30 -05:00
Miles Alan
fe15eb6755 Loop weather script fetch/display logic 2020-07-09 18:19:11 -05:00
Miles Alan
95e36ccec2 Loop RSS script so that you can launch multiple items without reopening 2020-07-09 18:18:54 -05:00
Miles Alan
e0067998c8 Always kick mpv to use -ao=alsa; prevents alsa from trying to use pulse 2020-07-08 22:42:21 -05:00
Miles Alan
9919f49d82 Modify weather script to pull hourly data and format in tables 2020-07-08 21:33:57 -05:00
Miles Alan
95f171e7da Delete zipcodes config file - GPS locations is better, and international 2020-07-08 20:46:39 -05:00
Anjandev Momi
07119a7085 make dmenus with contact names case insensitive
Signed-off-by: Miles Alan <m@milesalan.com>
2020-07-07 23:31:28 -05:00
Maarten van Gompel
63d5ec3f7d added wireless symbol to bar if wireless is connected
Signed-off-by: Miles Alan <m@milesalan.com>
2020-07-06 21:21:40 -05:00
Miles Alan
435a1e74f1 Create empty file for contactsfile if missing 2020-06-30 22:29:32 -05:00
Miles Alan
a011bed9b8 Ensure shellcheck passes 2020-06-30 19:26:46 -05:00
Miles Alan
888ccc53a3 Add Foxtrotgps back to programs menu 2020-06-30 19:25:01 -05:00
Daniel Edgecumbe
e648f73291 smxo_appmenu.sh: Use 'which' to kill pre-existing instances
We may have 'sxmo_appmenu.sh' in the full commandline of other tools
which we don't want to kill, for example lisgd arguments.

Signed-off-by: Miles Alan <m@milesalan.com>
2020-06-30 18:54:55 -05:00
Miles Alan
4079d4d7e1 Don't loop after paste in Maps in sxmo_appmenu.sh 2020-06-30 18:53:49 -05:00