diff --git a/dotfiles/bin/.bin/matrix-screenshot.ps1 b/dotfiles/bin/.bin/matrix-screenshot.ps1 index 49ed0d5..14aa38d 100755 --- a/dotfiles/bin/.bin/matrix-screenshot.ps1 +++ b/dotfiles/bin/.bin/matrix-screenshot.ps1 @@ -62,7 +62,7 @@ $serverName = $media.content_uri.Split('/')[2] $mediaId = $media.content_uri.Split('/')[3] $mediaUrl = '{0}/_matrix/media/r0/download/{1}/{2}' -f $homeserverUrl,$serverName,$mediaId -$mediaUrl | wl-copy +$mediaUrl | wl-copy --trim-newline if ($roomId) { $eventSplat = @{