feat: try following xdg spec
This commit is contained in:
parent
c4f2d15e75
commit
4cf8695c8f
1 changed files with 8 additions and 1 deletions
|
@ -4,9 +4,16 @@ set -E -o pipefail
|
|||
shopt -s failglob
|
||||
export LC_ALL=C.UTF8
|
||||
|
||||
PICTURES="$HOME"
|
||||
|
||||
source "/etc/xdg/user-dirs.defaults"
|
||||
source "$XDG_CONFIG_HOME/user-dirs.dirs"
|
||||
|
||||
mkdir -p "$PICTURES"
|
||||
|
||||
grim -g "$(slurp -o -r -c '#ff0000ff')" - \
|
||||
| satty \
|
||||
--filename - \
|
||||
--fullscreen \
|
||||
--initial-tool "crop" \
|
||||
--output-filename "$HOME/Media/Pictures/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png"
|
||||
--output-filename "$PICTURES/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue