From 765e611fbabee5639e9ff11bc88b5cf7da98d8ea Mon Sep 17 00:00:00 2001 From: lub Date: Sun, 6 Feb 2022 15:32:35 +0100 Subject: [PATCH] send notification after URL is in clipboard --- dotfiles/bin/.bin/matrix-screenshot.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotfiles/bin/.bin/matrix-screenshot.ps1 b/dotfiles/bin/.bin/matrix-screenshot.ps1 index 66c08ab..736cfc4 100755 --- a/dotfiles/bin/.bin/matrix-screenshot.ps1 +++ b/dotfiles/bin/.bin/matrix-screenshot.ps1 @@ -2,7 +2,7 @@ <# .SYNOPSIS - Takes a screenshot and puts the URl into the clipboard + Takes a screenshot and puts the URL into the clipboard .DESCRIPTION Uses grim and slurp to create a screenshot and uploads it into a matrix content repository. A GETable URL is placed into the clipboard via wl-copy and optionally sent to the specified room. @@ -73,6 +73,7 @@ $mediaId = $media.content_uri.Split('/')[3] $mediaUrl = '{0}/_matrix/media/r0/download/{1}/{2}' -f $homeserverUrl,$serverName,$mediaId $mediaUrl | wl-copy --trim-newline +notify-send 'Screenshot URL in clipboard' --expire-time=1000 if ($roomId) { $fileName = $webpPath | Split-Path -Leaf