send notification after URL is in clipboard

master
lub 3 years ago
parent 0ca6cdeca2
commit 765e611fba

@ -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

Loading…
Cancel
Save