dotfiles/.local/bin/scripts/wl-save
2025-02-04 11:57:49 +01:00

5 lines
210 B
Bash
Executable file

#!/bin/sh -e
# Save wl clipboard image with last copied url
file="$(date +%y%m%d-%H%M%S)_$(cliphist list | grep --max-count 1 https:// | sed 's|/$||' | rev | cut -d/ -f1 | rev).png"
wl-paste >"$file"
b "$file"