Skip to content

Instantly share code, notes, and snippets.

@matheusfillipe
Created June 17, 2021 04:19
Show Gist options
  • Save matheusfillipe/0e2547b9ae823cbfe0d23c23f508ed59 to your computer and use it in GitHub Desktop.
Save matheusfillipe/0e2547b9ae823cbfe0d23c23f508ed59 to your computer and use it in GitHub Desktop.
xcut
#!/bin/bash
service=$(wgetpaste -S | awk 'NR > 3{print $1}' | sed 's/\*//g' | rofi -dmenu -p service)
lang=$(wgetpaste -s "$service" -L | awk '{print $1}')
wgetpaste -s "$service" -l "$lang" -x -X -C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment