~mil/sxmo-utils

SMS: Fix unquoted grep input

Signed-off-by: Anjandev Momi <anjan@momi.ca>
Make volume control pipewire compatible

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
improved detection for ongoing call in idle_lock monitor
update icon in contact add

oops forgot the icon!

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
contact add

allow us to add to contacts

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
fixed mute so temp file is named correctly

Noticed that a missed call notification still came in on muted calls.
After this fix, modemmonitor checkforfinishedcalls identifies cachefile
correctly.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Drop almost useless mpv config

We dont need those config and this prevent the user mpv config to take
priority by default.

We just drop this completly.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
fix paths in doas configuration
added some systemctl commands to doas.conf for compatibility with systemd distros like Arch
added tinydm-set-session to doas conf so sxmo_wmtoggle.sh works again
Typo, remove leading line
Cleanup sxmo_screenshot
Screenshot: Copy path to clipboard in wayland, rework script for better error detection

also, ostensibly fix clipboard copying for x

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Remove obsolette input handlers about dmenu

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
renamed doas-sxmo.conf (introduced in previous commit) to sxmo.conf
drop sudo for doas

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Rework screen lock

The main goal of this patch is to simplify the locking and unlocking
flow in sxmo.

The idea is to manage effectively and with ease the screenlock state
with only one button.

Pressing power button will rotate the screen lock from

unlock -> off -> lock -> unlock -> …

You can also double power button to jump in the target state
faster. Example :

unlock -> [double power] -> lock
off -> [double power] -> unlock
lock -> [double power] -> off

In short, this is the same circle in reverse order.

Some of the other inputs has been changed to make this coherent.

in short:

VOLUP: 1 = menu; 2 = sysmenu; 3 = list all windows;
VOLDOWN: 1 = keyboard; 2 = change window; layout 3 = close/kill windows;
POWER: 1 = deeper lock; 2 = higher lock; 3 = open a terminal

As you can see, we cannot suspend with only the power button.

To access suspension, we rely on swayidle/xprintidle to rotate the
screen lock from

lock -> off -> crust (8 seconds the first step, then 8 seconds for the
second)

So buttons will wake the phone up and idle will make the phone to sleep,
step by step.

With this behavior, you can run a video with mpv then double power to
lock the screen (blue led). Swayidle will not off then suspend cause mpv
is an idle inhibitor by itself.

While in crust, the powerbutton will then "uncrust" and the action will
still be handled by sxmo to move you back to "lock". Waiting 8 seconds
will move you to "off" then 8 additional seconds to go back to "crust".

I also added a hook to detect and disable the idle daemon in some cases
(mpc playing, proximity lock on, ssh session active). It is a hook the
user can override and extends.

I added a simple script to have some sort of swayidle on xorg for
backward compatibility.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Add screenshot support in wayland (sway)

User must have grim and slurp installed.
We should add those programs to the swmo ui metapackage

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Remove sxmo_resetscaninterval leftover

Signed-off-by: Danct12 <danct12@disroot.org>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Fix start hook

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Next