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