11 Commits

Author SHA1 Message Date
Stacy Harper
a2405f6d57 Fix shellspec 2022-11-15 13:41:55 +01:00
Stacy Harper
26bed619fe Some new daemons 2022-04-16 11:11:14 +02:00
Anjandev Momi
1123c0f072 Change license to AGPL-3.0-only 2022-03-15 08:00:00 -04:00
J William Piggott
6c068a2e4d sxmo_vvmdconfig.sh: fix defaultconfig
Fix incorrect key labels and delimiters in default configuration

Signed-off-by: J William Piggott <elseifthen@gmx.com>
=2D--
 scripts/core/sxmo_vvmdconfig.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-02-20 11:00:21 +01:00
J William Piggott
506fed6037 sxmo_vvmdconfig.sh: incorrect var label
Fails to create default vvm configuration file

Signed-off-by: J William Piggott <elseifthen@gmx.com>
=2D--
 scripts/core/sxmo_vvmdconfig.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-02-20 11:00:21 +01:00
J William Piggott
acae77460f sxmo_vvmdconfig.sh: incorrect function call
Fails to create default vvm configuration file

Signed-off-by: J William Piggott <elseifthen@gmx.com>
=2D--
 scripts/core/sxmo_vvmdconfig.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-02-20 11:00:20 +01:00
Zach DeCook
ffcfa6f6a4 icons: Change into a hook
Fixes the icons hook to be where the migration script moved it.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-02-14 18:18:55 +01:00
Peter John Hartman
6c4f78ee8e sms: checkforlostmms, deletedrafts, vars
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-01-17 13:26:54 +01:00
Stacy Harper
238aa38efc Refact: commons loading
- Move sxmo icons in sxmo_icons.sh

This script should be loaded when icons are needed

- Move init env variable setups in a /etc/profile.d/sxmo_init.sh

This script is loaded by tinydm and for ssh/tty logins.

The logged in user can re-trigger check_sxmo_wm if they toggle wm.

- sxmo_commons.sh now only load aliases. It can be loaded by scripts to
ensure busybox compatibility

- moved some parts of ~/.config/sxmo/xinit to ~/.config/sxmo/profile

This file also is loaded just before starting sway. It goal is to setup
env variables dedicated to sxmo

~/.config/sxmo/xinit only goal is now to trigger some dwm dedicated
things (as ~/.config/sxmo/sway can start exec commands to)

To recap, loads orders are :

tinydm:
	/etc/profile.d/* # do not set SXMO_WM
	~/.profile

	sxmo_winit.sh:
		~/.config/sxmo/profile

	sxmo_xinit.sh:
		~/.config/sxmo/profile
		~/.config/sxmo/xinit # to start sxmo_hooks.sh

ssh/tty:
	/etc/profile.d/* # will set SXMO_WM
	~/.profile

- unify sxmo_winit.sh and sxmo_init.sh

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2022-01-15 11:31:00 +01:00
Stacy Harper
d32bc7e02e Refact: Daemons management
Add a sxmo_daemons to manage all sxmo daemons

$ sxmo_daemons.sh start mmsd mmsdtng
$ sxmo_daemons.sh start network_monitor sxmo_networkmonitor.sh
$ sxmo_daemons.sh start sleepy sleep 2

$ sxmo_daemons.sh start network_monitor sxmo_networkmonitor.sh
-> This will stop the old daemon and start a new one

$ sxmo_daemons.sh running network_monitor
network_monitor is still running
$ echo $?
0

$ sxmo_daemons.sh running unknown
unknown is not running
$ echo $?
1

$ sxmo_daemons.sh running sleepy
sleepy is not running anymore
$ echo $?
2

$ sxmo_daemons.sh running network_monitor -q && echo "tada !"
tada !

$ sxmo_daemons.sh stop network_monitor
$ sxmo_daemons.sh stop all # to stop every managed daemons

We can now start, stop and check daemons status with ease. When
dwm/sway shutdown, we stop all daemons. Restarting or toggleing window
manager cannot leave any dangling daemons anymore.

As you can see, all daemons now start from the start hook. We gave the
full power on the user to disable or add daemons.

This patch is painfull cause I had to make sure every daemons behave
correctly and shutdown gracefully when killed (which was definitely not
the case !).

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2022-01-15 11:30:49 +01:00
Peter John Hartman
7555c5bf03 mms/vvm: various fixes
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-12-27 16:18:00 +01:00