Compare commits

...

2 Commits

@ -41,14 +41,15 @@ if ((Get-Item $tmpPath).Length -eq 0) {
}
magick $tmpPath $webpPath
Remove-Item $tmpPath
if ((Get-Item $webpPath).Length -eq 0) {
Remove-Item $webpPath
throw ('WebP file "{0}" is empty' -f $webpPath)
} else {
Remove-Item $tmpPath
}
$webpName = (Split-Path -Leaf $webpPath)
$nextcloudPath = $config.Path + '/' + $webpName
@ -87,7 +88,7 @@ try {
throw $_
Remove-Item $webpPath
}
$share.ocs.data.url | wl-copy --trim-newline
$share.ocs.data.url + '/preview' | wl-copy --trim-newline
notify-send 'Screenshot URL in clipboard' --expire-time=1000
Remove-Item $webpPath

@ -265,7 +265,7 @@ bindsym $mod+p exec 'alacritty --command pwsh'
#requires grim,slurp,wl-clipboard
bindsym $mod+shift+s exec 'grim -g "$(slurp)" - | wl-copy'
bindsym alt+ctrl+shift+s exec 'grim - | wl-copy'
bindsym $mod+alt+ctrl+shift+s exec 'pwsh -Command matrix-screenshot.ps1'
bindsym $mod+alt+ctrl+shift+s exec 'pwsh -Command nextcloud-screenshot.ps1'
#brightness
bindsym XF86MonBrightnessUp exec 'sudo brightnessctl -d intel_backlight s +5%'

Loading…
Cancel
Save