From a1e52720c6224ffa0507a2c89ee941faf88e5d0c Mon Sep 17 00:00:00 2001 From: cswimr Date: Thu, 24 Oct 2024 11:00:40 -0400 Subject: [PATCH] add spectacle-screenshot zsh script in `~/.local/bin/` --- .gitignore | 10 ++++++++++ .local/bin/spectacle-screenshot | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100755 .local/bin/spectacle-screenshot 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