pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

urukrama private pastebin - collaborative debugging tool What's a private pastebin?


Posted by sole_thunar on Mon 5 May 10:27
report abuse | View followups from urukrama | download | new post

  1. #!/bin/sh
  2.  
  3. thunar_wm_class="thunar"
  4. thunar_exec="thunar"
  5.  
  6. # no thunar started, so start one
  7. if [ -z "`wmctrl -lx | grep thunar`" ]; then
  8.     $thunar_exec &
  9. else
  10.     # search for existing thunars on current desktop
  11.     current_desk=`wmctrl -d | grep '*' | cut -d ' ' -f 1`
  12.     thunar_on_this_desk=`wmctrl -lx | grep "$current_desk[ ]*$thunar_wm_class" | cut -d ' ' -f 1`
  13.     if [ -n "$thunar_on_this_desk" ]; then
  14.         wmctrl -i -a $term_on_this_desk
  15.     else
  16.         # no thunars on current desktop, so open a new one
  17.         wmctrl -x -R $thunar_wm_class
  18.     fi;
  19. fi;

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me