24 Commits

Author SHA1 Message Date
Stacy Harper
08fe32d492 Shellcheck fixes 2022-12-17 10:34:45 +01:00
Eolien55
12d378ea92 Respect sfeed configuration in rss script
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2022-10-02 08:32:27 -05:00
wentam
88600bedf1 Use XDG_DATA_DIRS rather than hardcode /usr/share
This is more flexible and makes packaging much easier - especially
on distros using non-standard paths like NixOS

This version of the patch has xdg_data_path default to 1 instance,
making usage simpler. The function is also documented a bit more
clearly.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-07-01 10:28:02 +02:00
Anjandev Momi
1123c0f072 Change license to AGPL-3.0-only 2022-03-15 08:00:00 -04:00
ArenM
dda8a25e65 Appscript cleanup
* handle exiting menus with escape

* replace if statements with case, where reasonable

* using shell string operations instead of forking

* use sxmo_dmenu_with_kb instead of opening and closing the keyboard

* remove extra options to sxmo_terminal and sxmo_bemenu (some of them
  were causing problems)

Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2022-02-27 16:24:27 -06:00
Zach DeCook
87485d344b sxmo_rss: Fix icon script sourcing
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-02-16 21:59:13 +01:00
Zach DeCook
34d0188a1e appscripts: Create list automatically
This will allow other packages to add system-wide appscripts

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-02-16 21:18:57 +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
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
Zach DeCook
6274f1f222 shebangs: change to /bin/sh
Any sane linux system will have a posix compliant shell at /bin/sh
This change will allow us to better detect running scripts using pgrep.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-12-20 14:29:25 +01:00
Maarten van Gompel
a9ac024fe9 use --index instead of -idx for compatibility with bemenu, requires similar patch for dmenu 2021-08-24 23:11:58 +02:00
Stacy Harper
8a27933c47 SWMO - SXMO over Wayland
This is a huge patch for Swmo, Sxmo over Sway.

It is Dwm backward compatible so dwm users should not expect regressions.

If you install all dependencies, you then can toggle between Sway and Dwm using a new config entry. It will reboot the phone.

This commit also contains:
    * Make the modemmonitor bullet proof
    * various other smaller fixes

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-22 13:23:22 +02:00
noneofyourbusiness
1121e29b3e replace "st -e" with sxmo_terminal.sh and edit it to use st -e instead of st
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-04 21:50:59 +02:00
Maarten van Gompel
2f62b7c446 Moved checkmark to icons 2021-03-16 22:01:41 +01:00
Maarten van Gompel
295af30993 various scripts were not sourcing the common include script yet (noted by mrrabbit1155) 2021-02-21 15:14:16 +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
Miles Alan
a60641cebc Retain position in RSS script when selecting items 2020-09-12 22:26:08 -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
0801bb1adb Restructure configs into seperate folder 2020-07-12 19:29:46 -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
95e36ccec2 Loop RSS script so that you can launch multiple items without reopening 2020-07-09 18:18:54 -05:00
Miles Alan
049a93e5d8 Shellcheck and tabindent all scripts 2020-06-13 20:36:13 -05:00
Miles Alan
f9e580106e Shellcheck and tabindent all appscripts 2020-06-07 10:17:14 -05:00
Miles Alan
ae983ef8c8 Various progess on calling & texting; reorganize scripts dirs by category 2020-04-25 07:55:22 -05:00