I need to pass the Desktop window ID to xscreensaver in order have it autostart.
Unfortunately the output of xwininfo is more than just the id so i cannot use ../xscreensaver/xxx -window-id $(`xwininfo -name Desktop'):
xwininfo: Window id: 0x1400003 "Desktop"
Absolute upper-left X: 0
Absolute upper-left Y: 0
Relative upper-left X: 0
Relative upper-left Y: 0
Width: 1280
Height: 1024
Depth: 24
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x20 (installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +0+0 -0+0 -0-0 +0-0
-geometry 1280x1024+0+0
Is there a way of taking just the window id "0x1400003" and passing it on to xscreensaver's command?
shell .sh script to pipe xwininfo
I suspect you aren't using rox-desktop because "Desktop" fails for me, but if I use "ROX-Filer" it works. The principle is the same.
2 ways I know ofor
HTH
Cheers
2 ways I know of
Code: Select all
xwininfo -name ROX-Filer | grep "ROX-Filer" | awk '{print $4}'
Code: Select all
xwininfo -name ROX-Filer | grep "ROX-Filer" | cut -d ' ' -f4
Cheers
Puppy Linux Blog - contact me for access