From 02b9a473bcb27a15415b2487011c35d9234dc2b3 Mon Sep 17 00:00:00 2001 From: lub Date: Sun, 4 Apr 2021 02:35:09 +0200 Subject: [PATCH] matrix-screenshot.ps1 remove trailing newline in clipboard --- dotfiles/bin/.bin/matrix-screenshot.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = @{