Skip to content

Instantly share code, notes, and snippets.

@aronj
Created September 13, 2013 22:19
Show Gist options
  • Save aronj/6556830 to your computer and use it in GitHub Desktop.
Save aronj/6556830 to your computer and use it in GitHub Desktop.
This python script lets you start urxvt with the command you have in clipboard
#!/usr/bin/env python
from os import system
from subprocess import Popen, PIPE
p1 = Popen(["xclip", "-o"], stdout=PIPE)
command = p1.communicate()[0]
system("urxvt -e sh -c \"" + command + " && zsh\"")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment