aboutsummaryrefslogtreecommitdiff
path: root/modules/user/desktop/scripts/screenshot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/desktop/scripts/screenshot.sh')
-rw-r--r--modules/user/desktop/scripts/screenshot.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/user/desktop/scripts/screenshot.sh b/modules/user/desktop/scripts/screenshot.sh
index f7d607b..8250f9e 100644
--- a/modules/user/desktop/scripts/screenshot.sh
+++ b/modules/user/desktop/scripts/screenshot.sh
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
# Bash screenshot script. Requires grim, slurp, sway, fuzzel, libnotify and jq.
+[[ -d "~/Pictures/Screenshots" ]] || mkdir -p ~/Pictures/Screenshots
IFS=$'\n'
screenshot_targets=$(swaymsg -rt get_outputs | jq -r '.[].name' | sort)
screenshot_targets+=($'\nSpecific region') # i LOVE bash