various indentation fixes (spaces to tabs and stripping trailing whitespace)
This commit is contained in:
parent
24380603a4
commit
7fb7cd70f3
15 changed files with 107 additions and 107 deletions
|
@ -3,10 +3,10 @@
|
|||
mkdir -p "$SXMO_RECDIR"
|
||||
|
||||
getdur() {
|
||||
mediainfo "$1" |
|
||||
grep ^Duration |
|
||||
head -n1 |
|
||||
cut -d: -f2 |
|
||||
mediainfo "$1" |
|
||||
grep ^Duration |
|
||||
head -n1 |
|
||||
cut -d: -f2 |
|
||||
tr -d " " |
|
||||
sed -E 's/[0-9]+ms//'
|
||||
}
|
||||
|
@ -65,11 +65,11 @@ recordmenu() {
|
|||
OPTION="$(
|
||||
printf %b "$OPTIONS" |
|
||||
xargs -0 echo |
|
||||
sed '/^[[:space:]]*$/d' |
|
||||
sed '/^[[:space:]]*$/d' |
|
||||
awk '{$1=$1};1' |
|
||||
dmenu -fn Terminus-30 -c -p "Record" -l 20
|
||||
)"
|
||||
|
||||
|
||||
if [ "$OPTION" = "Line Jack" ]; then
|
||||
OLDAUDIOF="$(mktemp)"
|
||||
alsactl --file "$OLDAUDIOF" store
|
||||
|
@ -95,7 +95,7 @@ recordmenu() {
|
|||
}
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
recordmenu
|
||||
recordmenu
|
||||
else
|
||||
"$@"
|
||||
"$@"
|
||||
fi
|
||||
|
|
|
@ -5,7 +5,7 @@ WEATHERXML=""
|
|||
|
||||
downloadweatherxml() {
|
||||
WEATHERXML="$(
|
||||
curl "https://forecast.weather.gov/MapClick.php?lat=$LAT&lon=$LON&FcstType=digitalDWML"
|
||||
curl "https://forecast.weather.gov/MapClick.php?lat=$LAT&lon=$LON&FcstType=digitalDWML"
|
||||
)"
|
||||
}
|
||||
|
||||
|
@ -110,7 +110,7 @@ getweathertexttable() {
|
|||
WIND="$(weatherdata "//wind-speed" ".")"
|
||||
#LOCATION="$(weatherdata "//location/description" ".")"
|
||||
TIME="$(
|
||||
weatherdata "//start-valid-time" "." |
|
||||
weatherdata "//start-valid-time" "." |
|
||||
grep -oE 'T[0-9]{2}' | tr -d 'T' | tr '\n' ' '
|
||||
)"
|
||||
tput rev; echo "$PLACE"; tput sgr0
|
||||
|
@ -133,7 +133,7 @@ weathermenu() {
|
|||
sxmo_dmenu_with_kb.sh -i -c -l 10 -fn Terminus-18 -p "Locations"
|
||||
)"
|
||||
if [ "$CHOICE" = "Close Menu" ]; then
|
||||
exit 0
|
||||
exit 0
|
||||
else
|
||||
PLACE="$(printf %b "$CHOICE" | cut -d: -f1 | awk '{$1=$1};1')"
|
||||
LAT="$(printf %b "$CHOICE" | cut -d: -f2- | awk '{$1=$1};1' | cut -d ' ' -f1)"
|
||||
|
@ -143,7 +143,7 @@ weathermenu() {
|
|||
}
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
weathermenu
|
||||
weathermenu
|
||||
else
|
||||
"$@"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue