From 2c485ce2b43bd810a88278215b771136a2a17881 Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Wed, 11 Feb 2026 05:47:33 +0300 Subject: add scripts --- private_dot_local/bin/executable_sway-shot-output | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 private_dot_local/bin/executable_sway-shot-output (limited to 'private_dot_local/bin/executable_sway-shot-output') 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 @@ +#!/bin/sh + +output=$(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') +file=$(date "+$HOME/multimedia/screenshots/%Y%m%d-%H%M%S.png") +grim -o $output - | tee $file | wl-copy -- cgit v1.3