cswimr/home
Archived
Template
1
0
Fork 0

add spectacle-screenshot zsh script in ~/.local/bin/

This commit is contained in:
Seaswimmer 2024-10-24 11:00:40 -04:00
parent e8da39c822
commit a1e52720c6
Signed by: cswimr
GPG key ID: A9C162E867C851FA
2 changed files with 21 additions and 0 deletions

10
.gitignore vendored
View file

@ -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/**

11
.local/bin/spectacle-screenshot Executable file
View file

@ -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