Advertisement
RobinJ1995

Untitled

Dec 17th, 2011
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. export wmclass="`xprop | grep WM_CLASS | tr '[A-Z]' '[a-z]'`"
  4. echo $wmclass
  5. echo $a | tr '[A-Z]' '[a-z]'
  6.  
  7. if [[ $wmclass == *nautilus* ]]
  8. then
  9.     # Nautilus
  10.     xdg-open http://www.robinj.be/xubix-help/?wmclass=nautilus
  11. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement