feat: try following xdg spec
This commit is contained in:
parent
c4f2d15e75
commit
af4aff8ef2
1 changed files with 8 additions and 1 deletions
|
@ -4,9 +4,16 @@ set -E -o pipefail
|
||||||
shopt -s failglob
|
shopt -s failglob
|
||||||
export LC_ALL=C.UTF8
|
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')" - \
|
grim -g "$(slurp -o -r -c '#ff0000ff')" - \
|
||||||
| satty \
|
| satty \
|
||||||
--filename - \
|
--filename - \
|
||||||
--fullscreen \
|
--fullscreen \
|
||||||
--initial-tool "crop" \
|
--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