diff --git a/.gitignore b/.gitignore index 3b56e3c..3889f2f 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,16 @@ !.config/nvim/ !.config/nvim/** +# ############################### .local/bin/ +!.local/ +.local/** + +!.local/bin/ +!.local/bin/** +.local/bin/** + +!.local/bin/spectacle-screenshot + # ############################### .zshc !.zshc/ !.zshc/** diff --git a/.local/bin/spectacle-screenshot b/.local/bin/spectacle-screenshot new file mode 100755 index 0000000..d8cd336 --- /dev/null +++ b/.local/bin/spectacle-screenshot @@ -0,0 +1,11 @@ +#!/usr/bin/zsh +# This file exists so that the `spectacle-screenshot` function can be easily called from a desktop shortcut +source ~/.zshc/func.zsh + +if [[ -z "${1}" ]]; then + readonly record=false +else + readonly record=$1 +fi + +spectacle-screenshot $record