X11: raise an existing window via command line

x11

Given an X client window ID, is there a way to raise that window from the command line?

$ xlsclients -a
Window 0x3000001:
  Machine:  ohm
  Name:  Terminal
  Icon Name:  foo
  Command:  foo
  Instance/Class:  foo/bar

$ xraise -id 0x3000001   <-- this is what I would like to do

Best Answer

You can also use wmctrl, which does similar things

Related Topic