summaryrefslogtreecommitdiff
path: root/private_dot_local/bin/executable_sway-shot-output
diff options
context:
space:
mode:
Diffstat (limited to 'private_dot_local/bin/executable_sway-shot-output')
-rw-r--r--private_dot_local/bin/executable_sway-shot-output5
1 files changed, 5 insertions, 0 deletions
diff --git a/private_dot_local/bin/executable_sway-shot-output b/private_dot_local/bin/executable_sway-shot-output
new file mode 100644
index 0000000..79ddd05
--- /dev/null
+++ b/private_dot_local/bin/executable_sway-shot-output
@@ -0,0 +1,5 @@
1#!/bin/sh
2
3output=$(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name')
4file=$(date "+$HOME/multimedia/screenshots/%Y%m%d-%H%M%S.png")
5grim -o $output - | tee $file | wl-copy