File: xgrab_example.js

package info (click to toggle)
freej 0.10git20100110-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 32,080 kB
  • ctags: 22,705
  • sloc: cpp: 156,254; ansic: 25,531; sh: 13,538; perl: 4,624; makefile: 3,278; python: 2,889; objc: 1,284; asm: 1,125; ruby: 126
file content (12 lines) | stat: -rw-r--r-- 290 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
// this script grabs the desktop
// discover your desktop id number using the command xwininfo from terminal
// then click on your desktop background and read the information

grab = new XGrabLayer();
grab.open(0x85);
grab.set_fps(25);
grab.activate(true);
grab.start();

add_layer(grab);