You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

xprop

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xprop

shells out to xprop to get X11 server properties (like resolution)

0.0.0
latest
Source
npmnpm
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

xprop

shells out to xprop to get the properties of x windows

 
var xprop = require('xprop')

// to fetch the resultion of your desktop
xprop({prop:'_NET_DESKTOP_GEOMETRY',root:1},function(err,properties){

  console.log(properties[0]);
  // prints something like
  // {key:'_NET_DESKTOP_GEOMETRY',value:'1920, 1080',type:'CARDINAL'}
})

// get all available property names
xprop.properties(function(err,data){
  //

//todo
nged on the desktop!
stream = xprop.spy()
stream.on('data',function(){
 console.log('something changed on the desktop')
})

``

depends
-------

on xprop being available and that you are running an X server`

FAQs

Package last updated on 16 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts