dotfiles/.local/bin/scripts/wl-save

6 lines
191 B
Plaintext
Raw Normal View History

2024-09-15 14:42:56 +00:00
#!/bin/sh -e
# Save wl clipboard image with last copied url
file="$(date +%y%m%d-%H%M%S)_$(cliphist list | grep https:// | head -1 | rev | cut -d/ -f1 | rev).png"
wl-paste >"$file"
b "$file"