diff --git a/add-submodules.sh b/add-submodules.sh index d6d5540..bc483fa 100755 --- a/add-submodules.sh +++ b/add-submodules.sh @@ -34,4 +34,3 @@ git submodule add --name tmux/tmux-yank \ -f https://github.com/tmux-plugins/tmux-yank.git config/tmux/plugins/tmux-yank git submodule add --name tmux/vim-tmux-navigator \ -f https://github.com/christoomey/vim-tmux-navigator.git config/tmux/plugins/vim-tmux-navigator - diff --git a/local/bin/dfm b/local/bin/dfm index 82a5541..c296f56 100755 --- a/local/bin/dfm +++ b/local/bin/dfm @@ -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 } diff --git a/local/bin/python b/local/bin/python index a36f0b8..42d1938 100755 --- a/local/bin/python +++ b/local/bin/python @@ -4,4 +4,3 @@ # and anyone else who expects to see a 'python' executable exec python3 "$@" - diff --git a/local/bin/x-record b/local/bin/x-record index 26ddb1f..f530418 100755 --- a/local/bin/x-record +++ b/local/bin/x-record @@ -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 diff --git a/scripts/install-go-packages.sh b/scripts/install-go-packages.sh index 98b13e4..6a4c4c1 100755 --- a/scripts/install-go-packages.sh +++ b/scripts/install-go-packages.sh @@ -7,6 +7,8 @@ source "$HOME/.dotfiles/scripts/shared.sh" ! have go && msg "go hasn't been installed yet." && exit 0 packages=( + # A shell parser, formatter, and interpreter with bash support; includes shfmt + mvdan.cc/sh/v3/cmd/shfmt@latest # sysadmin/scripting utilities, distributed as a single binary github.com/skx/sysbox@latest # Git Profile allows you to switch between user profiles in git repos diff --git a/scripts/shared.sh b/scripts/shared.sh index e129be5..df5d44c 100755 --- a/scripts/shared.sh +++ b/scripts/shared.sh @@ -336,4 +336,3 @@ ask() fi done } -