Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 19th, 2011  |  syntax: None  |  size: 0.48 KB  |  views: 219  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ~/bin/vlcx:
  2. #!/bin/sh
  3.  
  4. # disables screen lock + compositing and starts vlc
  5. # re-enables screen lock + compositing after vlc exits
  6.  
  7. # xcompmgr
  8. ( ps nc -C xcompmgr &>/dev/null ) && killall xcompmgr;
  9. xautolock -disable;
  10. vlc $1;
  11. xcompmgr -nfF&
  12. xautolock -enable;
  13.  
  14.  
  15. ~/.config/ranger/apps.py:
  16. # By setting flags='d', this programs will not block ranger's terminal:
  17. CustomApplications.generic('opera', 'firefox', 'apvlv',
  18.                 'zathura', 'gimp', 'mirage', 'eog', 'vlcx', flags='d')
clone this paste RAW Paste Data