various scripts were not sourcing the common include script yet (noted by mrrabbit1155)
This commit is contained in:
parent
d71c11d993
commit
295af30993
25 changed files with 119 additions and 0 deletions
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# include common definitions
|
||||||
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
DIR="$1"
|
DIR="$1"
|
||||||
[ -z "$DIR" ] && DIR="/home/$USER/"
|
[ -z "$DIR" ] && DIR="/home/$USER/"
|
||||||
cd "$DIR" || exit 1
|
cd "$DIR" || exit 1
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/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
|
[ -z "$SXMO_RECDIR" ] && SXMO_RECDIR="$XDG_DATA_HOME"/sxmo/recordings
|
||||||
mkdir -p "$SXMO_RECDIR"
|
mkdir -p "$SXMO_RECDIR"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/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"
|
[ -z "$SXMO_SUBREDDITS" ] && SXMO_SUBREDDITS="pine64official pinephoneofficial unixporn postmarketos linux"
|
||||||
|
|
||||||
menu() {
|
menu() {
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# include common definitions
|
||||||
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
FETCHENABLED=1
|
FETCHENABLED=1
|
||||||
|
|
||||||
if [ -f "$XDG_CONFIG_HOME/sxmo/sfeedrc" ]; then
|
if [ -f "$XDG_CONFIG_HOME/sxmo/sfeedrc" ]; then
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# include common definitions
|
||||||
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
timerrun() {
|
timerrun() {
|
||||||
TIME=$(
|
TIME=$(
|
||||||
echo "$@" |
|
echo "$@" |
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/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"
|
[ -z "$SXMO_GPSLOCATIONSFILES" ] && SXMO_GPSLOCATIONSFILES="/usr/share/sxmo/appcfg/places_for_gps.tsv"
|
||||||
ROWHOURS=12
|
ROWHOURS=12
|
||||||
WEATHERXML=""
|
WEATHERXML=""
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# include common definitions
|
||||||
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
pidof "$KEYBOARD" || "$KEYBOARD" &
|
pidof "$KEYBOARD" || "$KEYBOARD" &
|
||||||
SEARCHQUERY="$(
|
SEARCHQUERY="$(
|
||||||
echo "Close Menu" | dmenu -t -p "Search:" -c -l 20
|
echo "Close Menu" | dmenu -t -p "Search:" -c -l 20
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/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
|
HISTORY_FILE="$XDG_CACHE_HOME"/sxmo/youtubehistory.tsv
|
||||||
NRESULTS=5
|
NRESULTS=5
|
||||||
AUDIOONLY=0
|
AUDIOONLY=0
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
ARG="$1"
|
ARG="$1"
|
||||||
|
|
||||||
|
# include common definitions
|
||||||
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
SPEAKER="Line Out"
|
SPEAKER="Line Out"
|
||||||
HEADPHONE="Headphone"
|
HEADPHONE="Headphone"
|
||||||
EARPIECE="Earpiece"
|
EARPIECE="Earpiece"
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# include common definitions
|
||||||
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
PIDS=""
|
PIDS=""
|
||||||
for i in "$@"; do
|
for i in "$@"; do
|
||||||
sxmo_setpineled "$i" 150 &
|
sxmo_setpineled "$i" 150 &
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/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/class/backlight/edp-backlight ] && DEV=/sys/class/backlight/edp-backlight
|
||||||
[ -e /sys/devices/platform/backlight/backlight/backlight ] && DEV=/sys/devices/platform/backlight/backlight/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"
|
# 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
|
CONTACTSFILE="$XDG_CONFIG_HOME"/sxmo/contacts.tsv
|
||||||
LOGFILE="$XDG_DATA_HOME"/sxmo/modem/modemlog.tsv
|
LOGFILE="$XDG_DATA_HOME"/sxmo/modem/modemlog.tsv
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
ACTION="$1"
|
ACTION="$1"
|
||||||
|
|
||||||
|
# include common definitions
|
||||||
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
XPROPOUT="$(xprop -id "$(xdotool getactivewindow)")"
|
XPROPOUT="$(xprop -id "$(xdotool getactivewindow)")"
|
||||||
WMCLASS="$(echo "$XPROPOUT" | grep WM_CLASS | cut -d ' ' -f3- | cut -d ' ' -f1 | tr -d '\",')"
|
WMCLASS="$(echo "$XPROPOUT" | grep WM_CLASS | cut -d ' ' -f3- | cut -d ' ' -f1 | tr -d '\",')"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/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"
|
[ -z "$SXMO_GPSLOCATIONSFILES" ] && SXMO_GPSLOCATIONSFILES="/usr/share/sxmo/appcfg/places_for_gps.tsv"
|
||||||
CTILESIZE=256
|
CTILESIZE=256
|
||||||
CLN2=0.693147180559945309417
|
CLN2=0.693147180559945309417
|
||||||
|
|
|
@ -1,2 +1,7 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# include common definitions
|
||||||
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
xdotool windowkill "$(xdotool getactivewindow)"
|
xdotool windowkill "$(xdotool getactivewindow)"
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# include common definitions
|
||||||
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
pkill -9 lisgd
|
pkill -9 lisgd
|
||||||
|
|
||||||
if [ -x "$XDG_CONFIG_HOME"/sxmo/hooks/lisgdstart ]; then
|
if [ -x "$XDG_CONFIG_HOME"/sxmo/hooks/lisgdstart ]; then
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/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
|
if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/lock" ]; then
|
||||||
"$XDG_CONFIG_HOME/sxmo/hooks/lock"
|
"$XDG_CONFIG_HOME/sxmo/hooks/lock"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# include common definitions
|
||||||
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
connections() {
|
connections() {
|
||||||
ACTIVE="$(nmcli -c no -t c show --active | cut -d: -f1,3 | sed 's/$/ ✓/')"
|
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)"
|
INACTIVE="$(nmcli -c no -t c show | cut -d: -f1,3)"
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/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"
|
MIMEAPPS="${XDG_CONFIG_HOME:-$HOME/.config}/mimeapps.list"
|
||||||
DESKTOPS_CACHED_MIMEAPPS="${XDG_CONFIG_HOME:-$HOME/.config}/desktops.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/"
|
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
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# include common definitions
|
||||||
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
applyptrmatrix() {
|
applyptrmatrix() {
|
||||||
PTRID="$(
|
PTRID="$(
|
||||||
xinput | grep -iE 'touchscreen.+pointer' | grep -oE 'id=[0-9]+' | cut -d= -f2
|
xinput | grep -iE 'touchscreen.+pointer' | grep -oE 'id=[0-9]+' | cut -d= -f2
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# include common definitions
|
||||||
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
trap "update" USR1
|
trap "update" USR1
|
||||||
pgrep -f sxmo_statusbar.sh | grep -v $$ | xargs -r kill -9
|
pgrep -f sxmo_statusbar.sh | grep -v $$ | xargs -r kill -9
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
#!/usr/bin/env sh
|
#!/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"
|
echo "Updating all packages from repositories"
|
||||||
sudo apk update
|
sudo apk update
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# include common definitions
|
||||||
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
FORK="$2"
|
FORK="$2"
|
||||||
|
|
||||||
if [ -n "$1" ]
|
if [ -n "$1" ]
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# include common definitions
|
||||||
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
notify() {
|
notify() {
|
||||||
VOL="$(
|
VOL="$(
|
||||||
amixer get "$(sxmo_audiocurrentdevice.sh)" |
|
amixer get "$(sxmo_audiocurrentdevice.sh)" |
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
|
||||||
envvars() {
|
envvars() {
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
[ -f /etc/profile ] && . /etc/profile
|
[ -f /etc/profile ] && . /etc/profile
|
||||||
|
@ -84,6 +85,10 @@ startdwm() {
|
||||||
}
|
}
|
||||||
|
|
||||||
xinit() {
|
xinit() {
|
||||||
|
# include common definitions
|
||||||
|
# shellcheck source=scripts/core/sxmo_common.sh
|
||||||
|
. "$(dirname "$0")/sxmo_common.sh"
|
||||||
|
|
||||||
envvars
|
envvars
|
||||||
setupxdgdir
|
setupxdgdir
|
||||||
xdefaults
|
xdefaults
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue