mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-11 08:52:08 +00:00
fix(lint): added missing shfmt, linted files
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -4,4 +4,3 @@
|
||||
# and anyone else who expects to see a 'python' executable
|
||||
|
||||
exec python3 "$@"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user