Skip to content

Instantly share code, notes, and snippets.

@matheusfillipe
Created June 17, 2021 04:23
Show Gist options
  • Select an option

  • Save matheusfillipe/9bb5c0973321dd7236690870b37ea1d0 to your computer and use it in GitHub Desktop.

Select an option

Save matheusfillipe/9bb5c0973321dd7236690870b37ea1d0 to your computer and use it in GitHub Desktop.
rofi-wgetpaste.sh
#!/bin/bash
service=$(wgetpaste -S | awk 'NR > 3{print $1}' | sed 's/\*//g' | rofi -dmenu -p service -i)
lang=$(wgetpaste -s "$service" -L | awk '{print $1}' | rofi -dmenu -p service -i)
desc=$(rofi -dmenu -p Description -i)
wgetpaste -s "$service" -l "$lang" -d "$desc" -x -X -C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment