fix(lint): added missing shfmt, linted files

This commit is contained in:
2023-08-31 09:55:00 +03:00
parent 6b76bc825c
commit 31e04ce865
6 changed files with 23 additions and 22 deletions

View File

@@ -184,8 +184,8 @@ function section_helpers
case "$1" in
path)
# shellcheck disable=2001
for i in $(echo "$PATH" | sed 's/:/ /g'); do echo "$i"; done;
;;
for i in $(echo "$PATH" | sed 's/:/ /g'); do echo "$i"; done
;;
*) menu_usage "$USAGE_PREFIX" "${MENU[@]}" ;;
esac
}

View File

@@ -4,4 +4,3 @@
# and anyone else who expects to see a 'python' executable
exec python3 "$@"

View File

@@ -31,26 +31,28 @@
# 2. Functions to minise code.
#{
# I.
notify () {
# I.
notify()
{
notify-call \
--replace-file "$replace_id" \
"$@"
notify-call \
--replace-file "$replace_id" \
"$@"
}
}
# II.
stop () {
# II.
stop()
{
# A.
#pkill -INT -f 'ffmpeg -f alsa -ac 1 -i pulse -f x11grab -r 30 -s '
giph --stop
# A.
#pkill -INT -f 'ffmpeg -f alsa -ac 1 -i pulse -f x11grab -r 30 -s '
giph --stop
# C.
eww update record_menu=false
# C.
eww update record_menu=false
}
}
#}
# #. Kill previous giph process.
@@ -76,7 +78,7 @@ fi
case "$1" in
# A. Supported.
'mkv' | 'gif' | 'webm' | 'mp4' ) ;;
'mkv' | 'gif' | 'webm' | 'mp4') ;;
# B. Not supported.
*)
@@ -93,7 +95,7 @@ fi
# II. Execute itself.
exec $0 $format $2
;;
;;
esac
@@ -170,7 +172,7 @@ fi
gtk-launch \
"$(xdg-mime query default inode/directory)" \
"$path_recordings/" \
>/dev/null 2>&1 &
> /dev/null 2>&1 &
fi