summaryrefslogtreecommitdiff
path: root/scripts/system/screenshot
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2026-05-15 22:36:21 -0400
committerJack Jamison <jackqjamison@gmail.com>2026-05-15 22:36:21 -0400
commit1c58ccb7855719483490abe1982afa12b0488f24 (patch)
treed6d6f95477c743c1e2e8f4a64095d50cb491338c /scripts/system/screenshot
parentfbe17d51cc2d52261721a46ee54d5dc8f32db3eb (diff)
refactor and battery notifier
Diffstat (limited to 'scripts/system/screenshot')
-rwxr-xr-xscripts/system/screenshot20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/system/screenshot b/scripts/system/screenshot
new file mode 100755
index 0000000..b599be2
--- /dev/null
+++ b/scripts/system/screenshot
@@ -0,0 +1,20 @@
+#!/bin/bash
+echo $1
+echo $2
+
+if [[ $1 == "-full" ]];
+then
+ if [[ $2 == "-save" ]];
+ then
+ grim -o eDP-1 ~/Pictures/Screenshots/$(date +'%s_grim.png')
+ else
+ grim -o eDP-1 - | wl-copy
+ fi
+else
+ if [[ $1 == "-save" ]];
+ then
+ grim -g "$(slurp)" ~/Pictures/Screenshots/$(date +'%s_grim.png')
+ else
+ grim -g "$(slurp)" - | wl-copy
+ fi
+fi