Commit Graph

22 Commits

Author SHA1 Message Date
Anjandev Momi
66e20f57af fix editorconfig: remove trailing space and use tabs 2023-05-14 00:19:17 -07:00
Tzafrir Cohen
d79b985804 bashism fixes
Several places where dash behaves differently than bash:
* read in dash has to have a variable.
* use command -v as type is not POSIX

Signed-off-by: Tzafrir Cohen <tzafrir@debian.org>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2022-12-05 11:46:43 -08: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
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
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
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
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
Maarten van Gompel
7fb7cd70f3 various indentation fixes (spaces to tabs and stripping trailing whitespace) 2020-11-20 18:10:17 +01:00
Serge E. Hallyn
16d77bcd86 sxmo_weather: add wind direction
It's important for me to see wind direction in addition to speed.  I
understand most people probably don't care, so we should probably show
this only if xinit sets WEATHER_WIND_DIR=1?  But we can bikeshed that
later, for now here's what I'm using on my phone right now.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
2020-11-20 17:23:21 +01:00
Miles Alan
0801bb1adb Restructure configs into seperate folder 2020-07-12 19:29:46 -05:00
Miles Alan
4fe129882d Fix weather hourly forecast time for <12hr times 2020-07-11 09:53:18 -05:00
Miles Alan
f25bb821ba Fix loop for sxmo_weather.sh 2020-07-09 18:40:02 -05:00
Miles Alan
fe15eb6755 Loop weather script fetch/display logic 2020-07-09 18:19:11 -05:00
Miles Alan
9919f49d82 Modify weather script to pull hourly data and format in tables 2020-07-08 21:33:57 -05:00
Miles Alan
25cc04e5d1 Cleanup sxmo_weather.sh shellscript and make sure shellcheck passes 2020-06-29 18:22:09 -05:00
Miles Alan
ff9ddcb634 Allow customization of zipcodes menu for sxmo_weather.sh via $SXMO_WEATHERZIPS 2020-06-29 10:18:40 -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