Commit graph

55 commits

Author SHA1 Message Date
Anjandev Momi
725d89d6d6
Rework the sxmo screenlock 2021-06-06 09:41:36 +02:00
Stacy Harper
13bdc0e415 Remove polkit rules as it is now in pmOs package
https://gitlab.com/postmarketOS/pmaports/-/merge_requests/2197/diffs?commit_id=5886e238babe8fd19428b4e05f89a371ed1ef4f6
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-05-29 22:48:33 +02:00
Clayton Craft
92561f7d7e udev: use more specific rule for creating touchscreen symlink
On the librem 5, this rule caused a symlink from /dev/input/mouse0
(which had the TOUCHSCREEN attrib set in udev... ??) to
/dev/input/touchscreen, when it should have been from something like
/dev/event*. This change causes udev to ignore mouse*, mice* etc in
/dev/input.

Tested on the librem 5.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-23 19:16:37 +02:00
Stacy Harper
f4ee396394 Rework the incoming call pickup/discard behavior
* The sxmo_modemmonitor.sh will now run a new sxmo_modemcall.sh
dedicated menu to Pickup, Hangup or Mute the call. It will not write
notifications anymore.

* We now can mute the ring with the new pickup menu. With the default
hook, this will stop the ringtone like the missed_call would do.

* The sxmo_modemcall.sh now use a new sxmo_proximitylock.sh which
will lock the screen when putting the phone in front of the ear. This
script should be smart enough to work smoothly with a crust context.

To achieve this, the proximity_lock will only disable the initial
lock (the one who want to go back in crust after some seconds) if the
phone moved a little bit and is not in your pocket. So forgetting the
phone in a table or not earing the ring in your bag will not empty the
battery. You'll find the phone in crust with notifications.

* The sxmo_modemcall.sh do not monitor finished calls anymore. We leave
it with hangup or being killed by sxmo_modemmonitor.sh. This simplify
the call script and prevent double deleting mmcli calls. I had to use
pids and wait commands to fix and issue and make the script killeable
by the monitor.

Plus, only the monitor will now delete calls. The call script should be
precise on what happen using cached files.

* Discarded and hanged up calls are two different behavior with
different script (by default use the same linked ones)

* Fixed a bug where sometime ringing was started twice. I think this is
cause by the new checkforincomingcalls in the connected state change. We
now use a file to test if the call already has been managed.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-23 19:16:08 +02:00
Stacy Harper
91fe7fbeab Fix the unreliable modem numbers prefix issues
Sometime, the modem will give 0611924312 as incoming text or
call number instead of +33611924312 (example in france).

This cause two issues cause of format missmatch:

* Notifications sometime come from "Unknown" when we actually know
the contact
* Text/Dial menu entries are duplicated with "Unknown" persons

We try here to fix boths issues with a simple idea. We will fallback
to a default prefix when it is missing (on phone like numbers,
composed of 10 numbers).

This prefix is an environment variable that cause 0 impact if missing.

* sxmo_contacts.sh will fix the recent numbers prefixes with the default
* sxmo_modemmonitor.sh will also fix the prefix with the default one

This should solve missmatch issues as both will use country code format

I only recommend to always store contacts in the prefixed format in the
contacts.tsv file.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-10 13:20:19 +02:00
Stacy Harper
df73a9af1c Simplify and prevent killing existing mpv instances
Instead of the trigger file and killing mpv, we loop the ring
indefinitely until killed. Maybe we should still got a guardrail but I
still never needed it (modemmonitor would trigger missed_call late or
later ?)

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-09 23:25:27 +02:00
Maarten van Gompel
6951639886 automatically turn modemmanager on in xinit template 2021-03-31 11:37:49 +02:00
Maarten van Gompel
943199aef8 set SXMO_LOCK_SCREEN_OFF=1 in xinit template 2021-03-31 11:37:39 +02:00
Maarten van Gompel
4dfee1cc8c default hook updatE: vibrate the phone on ringing (once) 2021-03-30 22:55:55 +02:00
Maarten van Gompel
bec7106317 Implement default hooks for ringing and incoming texts, playing audio 2021-03-30 21:02:42 +02:00
Maarten van Gompel
95683bdc0c make notifications not cover the status bar (suggested by ~dinkocar in #220) 2021-03-30 19:11:09 +02:00
Maarten van Gompel
cddec4205d removed the startup tune in the xinit template 2021-03-30 19:05:18 +02:00
Maarten van Gompel
34cf0fd0fc fixed clickclack vibration flag in xinit template 2021-03-30 19:04:07 +02:00
Maarten van Gompel
fa0d9b6e2d fixed 24h conky 2021-03-29 20:21:27 +02:00
Maarten van Gompel
12d7ae0fbb minor fix in xinit template 2021-03-29 19:52:41 +02:00
Maarten van Gompel
c324aed044 fix for firefox as default browser in template 2021-03-29 16:27:54 +02:00
Maarten van Gompel
5f82699014 Added a more detailed xinit_template and added some default media resources (wallpaper,startup tune,keypress sound) that are preconfigured in the template 2021-03-29 14:00:09 +02:00
tetrakist
f8995ad25c Fix large conky shadow when using large fonts.
After HiDPI was enabled, larger font sizes were needed in conky.conf.
Due to conky weirdness, this requires the addition of ${font} at the end
of the conky.text = [[ ]] section in conky.conf to prevent weird large
offsets for the drop shadow. This returns the shadow a ~1 pixel
offset.

See https://forums.gentoo.org/viewtopic-p-7132288.html

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-24 21:43:53 +01:00
Maarten van Gompel
e03e17fba0 added xresources for st 2021-03-22 19:49:48 +01:00
Maarten van Gompel
a6043ad80d use icons in status bar 2021-03-21 17:00:30 +01:00
Maarten van Gompel
f768d5b551 added xresources files with fonts compatible with the new hidpi patch 2021-03-15 21:29:52 +01:00
Maarten van Gompel
bd346e4e68 renamed to fix previous patch 2021-03-15 21:29:52 +01:00
tetrakist
890b9bc439 Add HiDPI support: Xft Xresources, and xorg monitor dimesions
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-15 21:29:52 +01:00
Maarten van Gompel
c51414257e changed sxmo-pinephone openrc script to be device-agnostic and invoke a sxmo-setpermissions.sh instead #169 2021-03-15 13:13:27 +01:00
tetrakist
0d66342126 Correct display of sqrt, pi, and division buttons when using terminus font.
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-06 23:12:05 +01:00
Jochen Sprickerhof
871964da4e Use udev for chmod device access
Tested on postmarketOS and Debian. Need to change filename so all rules
are applied.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-03-05 12:34:39 -05:00
Maarten van Gompel
c1fe2df7d1 Added user access for missing wakeup sources 2021-02-05 22:59:07 +01:00
Maarten van Gompel
24905884ee Removed explicit font from most dmenu calls, dmenu font is read from Xresources now and kept as uniform as possible 2021-02-01 18:32:32 +01:00
Maarten van Gompel
ca88d3029e Enable user access to pinephone hardware kernel interface through openrc script, remove setuid 0 requirement 2021-01-30 21:41:08 +01:00
Maarten van Gompel
00cf2ba3ec reduce wifi reconnection time after deep sleep #150 2021-01-30 21:40:56 +01:00
Maarten van Gompel
861eac8cca update status bar quicker after connection to wireless 2021-01-30 13:06:53 +01:00
Miles Alan
9aa5c7bf16 Standardize install path for mimeapps.list to use $PREFIX 2020-12-01 17:21:43 -06:00
Reed Wade
fadbe72039 Use mono differencial as default Line Out mode
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-29 12:34:45 +01: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
Sam Bowlby
c8ca9e850b fixed renamed alsa controls
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-10-28 23:57:02 -04:00
Andre Ramnitz
1221e853cb Proper xresources for xcalc 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
iressa
e6635ba7ef Notification patch v4 2020-08-05 23:32:39 -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
95f171e7da Delete zipcodes config file - GPS locations is better, and international 2020-07-08 20:46:39 -05:00
Miles Alan
9709accd13 Implement context menu for foxtrotgps with copy/paste/search/locations
Rename context menu title for foxtrotgps to Maps and move to top-level menu
2020-06-24 21:38:05 -05:00
Miles Alan
f10eab033d Enable recording via dsnoop 2020-06-09 18:58:45 -05:00
Miles Alan
0cdf6e4723 Rework notifications to only use dunst 2020-05-30 15:15:05 -05:00
Miles Alan
dcb72738d4 Remove unused config file 2020-05-25 01:30:16 -05:00
Miles Alan
402aa6f142 Add xcalc to the app menu; xrdb new xcalc xresources file on xinit 2020-05-22 23:15:32 -05:00
Miles Alan
0e35ec4778 Make AM/PM on conky actually accurate on the root window 2020-05-22 23:15:29 -05:00
Miles Alan
bfbec8ef46 Make default RSS feeds suck less; automatically start modem monitor 2020-05-19 21:30:12 -05:00
Miles Alan
34b2c57038 Fixes related to cleaning up modem functionality; fix audio; add flash toggle 2020-05-17 18:59:47 -05:00
Miles Alan
546d2209a7 Add polkit rule to enable modemamanger for users in group plugdev 2020-05-12 19:12:38 -05:00