various scripts were not sourcing the common include script yet (noted by mrrabbit1155)

master
Maarten van Gompel 4 years ago
parent d71c11d993
commit 295af30993
  1. 5
      scripts/appscripts/sxmo_files.sh
  2. 5
      scripts/appscripts/sxmo_record.sh
  3. 5
      scripts/appscripts/sxmo_reddit.sh
  4. 5
      scripts/appscripts/sxmo_rss.sh
  5. 5
      scripts/appscripts/sxmo_timer.sh
  6. 5
      scripts/appscripts/sxmo_weather.sh
  7. 5
      scripts/appscripts/sxmo_websearch.sh
  8. 5
      scripts/appscripts/sxmo_youtube.sh
  9. 4
      scripts/core/sxmo_audioout.sh
  10. 5
      scripts/core/sxmo_blinkled.sh
  11. 5
      scripts/core/sxmo_brightness.sh
  12. 4
      scripts/core/sxmo_contacts.sh
  13. 5
      scripts/core/sxmo_gesturehandler.sh
  14. 5
      scripts/core/sxmo_gpsutil.sh
  15. 5
      scripts/core/sxmo_killwindow.sh
  16. 5
      scripts/core/sxmo_lisgdstart.sh
  17. 5
      scripts/core/sxmo_lock.sh
  18. 4
      scripts/core/sxmo_networks.sh
  19. 4
      scripts/core/sxmo_open.sh
  20. 4
      scripts/core/sxmo_rotate.sh
  21. 5
      scripts/core/sxmo_statusbar.sh
  22. 4
      scripts/core/sxmo_upgrade.sh
  23. 5
      scripts/core/sxmo_urlhandler.sh
  24. 5
      scripts/core/sxmo_vol.sh
  25. 5
      scripts/core/sxmo_xinit.sh

@ -1,4 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
DIR="$1"
[ -z "$DIR" ] && DIR="/home/$USER/"
cd "$DIR" || exit 1

@ -1,4 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
[ -z "$SXMO_RECDIR" ] && SXMO_RECDIR="$XDG_DATA_HOME"/sxmo/recordings
mkdir -p "$SXMO_RECDIR"

@ -1,4 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
[ -z "$SXMO_SUBREDDITS" ] && SXMO_SUBREDDITS="pine64official pinephoneofficial unixporn postmarketos linux"
menu() {

@ -1,4 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
FETCHENABLED=1
if [ -f "$XDG_CONFIG_HOME/sxmo/sfeedrc" ]; then

@ -1,4 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
timerrun() {
TIME=$(
echo "$@" |

@ -1,4 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
[ -z "$SXMO_GPSLOCATIONSFILES" ] && SXMO_GPSLOCATIONSFILES="/usr/share/sxmo/appcfg/places_for_gps.tsv"
ROWHOURS=12
WEATHERXML=""

@ -1,4 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
pidof "$KEYBOARD" || "$KEYBOARD" &
SEARCHQUERY="$(
echo "Close Menu" | dmenu -t -p "Search:" -c -l 20

@ -1,4 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
HISTORY_FILE="$XDG_CACHE_HOME"/sxmo/youtubehistory.tsv
NRESULTS=5
AUDIOONLY=0

@ -1,6 +1,10 @@
#!/usr/bin/env sh
ARG="$1"
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
SPEAKER="Line Out"
HEADPHONE="Headphone"
EARPIECE="Earpiece"

@ -1,4 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
PIDS=""
for i in "$@"; do
sxmo_setpineled "$i" 150 &

@ -1,4 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
[ -e /sys/class/backlight/edp-backlight ] && DEV=/sys/class/backlight/edp-backlight
[ -e /sys/devices/platform/backlight/backlight/backlight ] && DEV=/sys/devices/platform/backlight/backlight/backlight

@ -9,6 +9,10 @@
#
# Prints in output format: "number: contact"
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
CONTACTSFILE="$XDG_CONFIG_HOME"/sxmo/contacts.tsv
LOGFILE="$XDG_DATA_HOME"/sxmo/modem/modemlog.tsv

@ -1,6 +1,11 @@
#!/usr/bin/env sh
ACTION="$1"
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
XPROPOUT="$(xprop -id "$(xdotool getactivewindow)")"
WMCLASS="$(echo "$XPROPOUT" | grep WM_CLASS | cut -d ' ' -f3- | cut -d ' ' -f1 | tr -d '\",')"

@ -1,4 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
[ -z "$SXMO_GPSLOCATIONSFILES" ] && SXMO_GPSLOCATIONSFILES="/usr/share/sxmo/appcfg/places_for_gps.tsv"
CTILESIZE=256
CLN2=0.693147180559945309417

@ -1,2 +1,7 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
xdotool windowkill "$(xdotool getactivewindow)"

@ -1,4 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
pkill -9 lisgd
if [ -x "$XDG_CONFIG_HOME"/sxmo/hooks/lisgdstart ]; then

@ -1,4 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/lock" ]; then
"$XDG_CONFIG_HOME/sxmo/hooks/lock"
fi

@ -1,5 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
connections() {
ACTIVE="$(nmcli -c no -t c show --active | cut -d: -f1,3 | sed 's/$/ ✓/')"
INACTIVE="$(nmcli -c no -t c show | cut -d: -f1,3)"

@ -1,5 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
MIMEAPPS="${XDG_CONFIG_HOME:-$HOME/.config}/mimeapps.list"
DESKTOPS_CACHED_MIMEAPPS="${XDG_CONFIG_HOME:-$HOME/.config}/desktops.mimeapps.list"
DESKTOP_DIRS="/usr/share/sxmo/applications/|/usr/share/applications/|/usr/local/share/applications/|${XDG_DATA_HOME:-$HOME/.local/share}/applications/"

@ -1,5 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
applyptrmatrix() {
PTRID="$(
xinput | grep -iE 'touchscreen.+pointer' | grep -oE 'id=[0-9]+' | cut -d= -f2

@ -1,4 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
trap "update" USR1
pgrep -f sxmo_statusbar.sh | grep -v $$ | xargs -r kill -9

@ -1,4 +1,8 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
echo "Updating all packages from repositories"
sudo apk update

@ -1,4 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
FORK="$2"
if [ -n "$1" ]

@ -1,4 +1,9 @@
#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
notify() {
VOL="$(
amixer get "$(sxmo_audiocurrentdevice.sh)" |

@ -1,5 +1,6 @@
#!/usr/bin/env sh
envvars() {
# shellcheck disable=SC1091
[ -f /etc/profile ] && . /etc/profile
@ -84,6 +85,10 @@ startdwm() {
}
xinit() {
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
envvars
setupxdgdir
xdefaults

Loading…
Cancel
Save