Commit graph

177 commits

Author SHA1 Message Date
Maarten van Gompel
54f3332dea full contact list (--all) now also includes short/special numbers #104 2020-12-09 15:46:21 +01:00
Anjandev Momi
fc051045c9 added aerc to app menu 2020-12-09 01:11:04 -05:00
Maarten van Gompel
c421d49503 added calcurse to app menu 2020-12-06 11:59:16 +01:00
Maarten van Gompel
6f2f03517b dino menu entry: case adjustment for consistency 2020-12-06 11:57:41 +01:00
Maarten van Gompel
c554044c41 Revert "sxmo_appmenu: fixed only one userscript appearing in Scripts menu"
This reverts commit 0f9a86dece.
2020-12-06 10:44:56 +01:00
Anjandev Momi
1bf1beae15 add dino (xmpp client) to apps menu 2020-12-05 23:29:09 -05:00
Anjandev Momi
0f9a86dece sxmo_appmenu: fixed only one userscript appearing in Scripts menu
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-12-04 23:49:02 -05:00
Anjandev Momi
f149b7e250 updated sxmo_contacts comment with acceptable numbers
Signed-off-by: Anjandev Momi <anjan@momi.ca>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-12-04 22:00:29 +01:00
Anjandev Momi
741defe781 Fix short phone numbers or phone numbers with text do not appear in scripts
Fixes #106

Signed-off-by: Anjandev Momi <anjan@momi.ca>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-12-04 22:00:29 +01:00
Maarten van Gompel
c915de82d8 Force new process group using setgid -f when starting anything that may possibly kill an entire progress group (kill -9 0) #117
This fixes https://todo.sr.ht/~mil/sxmo-tickets/117 and the crashes when
toggling the modem monitor.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-12-01 22:47:00 -05:00
Reed Wade
08b95c6182 sxmo_files now respect user desktop configurations
We use our own implementation of xdg-open that replace the hardcoded
script used in sxmo_files.

We add and will maintain some desktop entries to offer a suckless
experience by default.

Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-11-28 02:39:25 -05:00
Maarten van Gompel
7fb7cd70f3 various indentation fixes (spaces to tabs and stripping trailing whitespace) 2020-11-20 18:10:17 +01:00
ivoulis
24380603a4 Do not start lisgd if it is not running (e.g. lockscreen) 2020-11-20 17:35:43 +01:00
Anjandev Momi
e11cf9e523 move sxmo data to XDG_DATA_HOME
Breaking change. Make sure you send an email to the mailing list
telling users to move their
$XDG_CONFIG_HOME/{modem,notifications} files/folders to
$XDG_DATA_HOME

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-11-08 19:45:39 -05:00
Anjandev Momi
ab3bb9bcdd kill the keyboard on rotation 2020-11-08 19:20:53 -05:00
Maarten van Gompel
be05c10163 quote fix as suggested by shellcheck 2020-11-08 12:17:14 +01:00
Maarten van Gompel
ce188e2f26 Use $SHELL, fix after patch: Start terminal with a login shell if run from dmenu
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-07 00:00:43 +01:00
Andre Ramnitz
8fc92c55d5 Start terminal with a login shell if run from dmenu
Fixes sourcing of /etc/profile etc.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-06 23:59:58 +01:00
Andre Ramnitz
a59aa85ee4 Don't touch $TERM
This name already exists and is usually set
by the terminal or a multiplexer.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-06 23:59:29 +01:00
Reed Wade
0ae9825752 Replace the camera script with the Megapixel app
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-11-02 22:38:44 -05:00
Anjandev Momi
90ddbc3e74 move dwm.log to $XDG_CACHE_HOME 2020-11-02 14:59:54 -05:00
Maarten van Gompel
178c746d85 shellcheck fix after applying "more contacts" patch 2020-11-01 18:17:33 +01:00
Maarten van Gompel
a537bea76a changed default background colour (to be the same as the one in sxmo-xdm-config)
it's subjective, but the old one was rather ugly imho. Of course people
should customise it in their own custom xinit, but it might be
better if the default is a bit more appealing to the eye as it's the
first thing new users will see.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-01 18:01:41 +01:00
Reed Wade
65d9d60ff1 Add more contacts choice to contact list
The dialer only included recent callers, but there was no way to access
the full contact list (contacts.tsv). I added a "more contacts" options
that calls sxmo_contacts --all, providing an alphabetically sorted list
of all your contacts. It also works for the texting menu.

This is a cleaned up version of an earlier patch by Maarten van Gompel.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-01 17:58:25 +01:00
Maarten van Gompel
0e4406bffa added vlc to app menu
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-01 17:35:52 +01:00
Maarten van Gompel
f0d40f28fc Fix for shellcheck problem and whitespace issue as suggested by Reed Wade (also stripping trailing spaces)
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-01 14:14:57 +01:00
Maarten van Gompel
0f685fa3a4 minor cleanup for "unmute" patch so it passes shellcheck 2020-11-01 13:59:16 +01:00
Reed Wade
56efe6e166 Autocomplete WPA networks with scanned ones
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-01 13:12:03 +01:00
Dmytro
6aaca4b161 Unmute fix
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-01 13:04:36 +01:00
Maarten van Gompel
86469c9b60 applied the same logic to the system menu: fix crash on open menu if already open 2020-11-01 13:01:21 +01:00
Sam Bowlby
c1aa407414 fix crash on open menu if already open
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-01 12:59:36 +01:00
Maarten van Gompel
e8e4c77a51 swapped the two move-window-to-next-desktop gestures, the direction of the swipe is now the direction of movement (makes more sense imho)
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-10-31 13:54:49 +01:00
Maarten van Gompel
6448587eb8 complete revision of gestures, using new edge system
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-10-31 13:53:46 +01:00
Maarten van Gompel
642bf1cc27 Implementing optional rtc wakeup at regular intervals, added presuspend, rtcwake and postwake scripts (with hooks)
(includes missing return 0 statement caught by Serge Hallyn)

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-10-31 12:13:22 +01:00
Reed Wade
8d5eda8af7 Add automatic shellchecks with CI
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
2020-10-30 12:56:04 -04:00
Miles Alan
b78a3ca674 Add sxmo_networks.sh script to manage nmcli connections 2020-09-19 17:15:32 -05:00
Miles Alan
deb83c0967 Don't source /etc/profile & $HOME/.profile if nonexistant in xinit 2020-09-19 17:15:32 -05:00
Maarten van Gompel
7830d95209 also source ~/.profile when looking for envvars
I have the impression that setting environment variables in the custom
xinit script doesn't always work properly (no idea why). Putting them in
~/.profile seems to be more robust. Sourcing it is a good idea anyhow,
hence this patch:
2020-09-15 19:29:17 -05:00
Miles Alan
a48be9cbcf Fix shellcheck errors in sxmo_{camera,rotateautotoggle.sh} 2020-09-12 22:58:17 -05:00
Anjandev Momi
64cef4d0c4 camera: update constants for new alpine update 2020-09-12 22:26:10 -05:00
Miles Alan
a211d82939 Set MPV_HOME in xinit and add input.conf & mpv.conf 2020-08-31 22:13:28 -05:00
Miles Alan
561122b07c sxmo_camera.sh: Set cache-secs and demuxer-readahead-secs to 0 to prevent lag
Stops camera stream in mpv from falling behind
2020-08-30 14:31:06 -05:00
Miles Alan
fbb431bf7a sxmo_camera.sh: Launch rear/front camera fns in st to show startup progress 2020-08-30 14:23:37 -05:00
Miles Alan
a426555983 sxmo_camera.sh: Pipe ffmpeg converted V4L2 to rawvideo data; remote X rotation
Use ffmpeg to convert V4L2 data into rawvideo data and pipe that to mpv. This
lets us use mpv's rawvideo demuxer which is instant for transpose / rotation.
Removes the X handling of rotation.
2020-08-30 13:51:34 -05:00
Miles Alan
607ef17637 Refactor camera script to use mpv instead of mplayer and delete dead code 2020-08-29 12:35:21 -05:00
Anjandev Momi
44784c106b camera: low latency preview and picture
- 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
2020-08-28 21:51:26 -05:00
Miles Alan
d245a004b6 Remove userscripts entry from main menu; Let Edit Scripts remain on menu bottom 2020-08-28 21:36:01 -05:00
Maarten van Gompel
7978535069 Enhanced application/scripts menu
I added a whole bunch of possibly useful tools to the
application menu (will only show if they are actually installed) and sorted
the list alphabetically. Also included a new hook so the user can completely
override the app menu. The scripts and user-scripts menus are now merged into
one.
2020-08-28 20:26:37 -05:00
Miles Alan
ffd359165e Style fixes for autorotate script for consistency with other scripts
Seperate autorotate enable/disable into fns.
Also show which state you're toggling from/to for autorotate in Config menu
2020-08-28 20:14:11 -05:00
Anjandev Momi
b86b152e6e Added autorotate using accelerometer script 2020-08-28 19:31:49 -05:00