changeset 108:e7948549afa1

do some stuff
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 29 Nov 2010 08:31:33 -0800
parents 1da1baa03ac1
children e83b7dd50461
files .fluxbox/keys python/cli.py
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/.fluxbox/keys	Mon Nov 29 07:21:30 2010 -0800
+++ b/.fluxbox/keys	Mon Nov 29 08:31:33 2010 -0800
@@ -59,7 +59,7 @@
 Control Mod1 l :ExecCommand echo http://letmegooglethatforyou.com/?q=$(xclip -o) | xclip -i
 Control Mod1 m :ExecCommand  xterm -e alsamixer # mixer
 Control Mod1 o :ExecCommand xclip -o | /home/jhammel/python/onelineit.py | xclip -i # put the clipboard contents on one line
-Control Mod1 p :ExecCommand xclip -o | /home/jhammel/python/pastebin.py | xclip -i # send the clipboard contents to pastebin and replace with the URL
+Control Mod1 p :ExecCommand xclip -o | /home/jhammel/python/pastebin.py | xclip -i 
 Control Mod1 q :ExecCommand xclip -o | sed 's/^/> /' | xclip -i # quote using >'s
 Control Mod1 s :ExecCommand /home/jhammel/bin/smartopen "$(xclip -o)" # smartopen
 Control Mod1 t :ExecCommand gnome-terminal # terminal
--- a/python/cli.py	Mon Nov 29 07:21:30 2010 -0800
+++ b/python/cli.py	Mon Nov 29 08:31:33 2010 -0800
@@ -50,7 +50,10 @@
   return (_dict, tags, args)
 
 if __name__ == '__main__':
-  _dict, tags, args = main()
+  try:
+    _dict, tags, args = main()
+  except ParserError, e:
+    import pdb; pdb.set_trace() # for debugging
   print _dict
   print tags
   print args