2023-01-10

wmctrl / xdotool - XWindow move resize

 

wmctrl


wmctrl -d


wmctrl -l


wmctrl -i -a <win id>


wmctrl -i -r <win id> 0,x,y,w,h




wmctrl -lx

0x00a00002  1 aterm.XTerm           box Terminal

0x01000002  1 google-chrome.Google-chrome  box WeChat/Weixin for Web - Google Chrome

0x01000005  1 google-chrome.Google-chrome  box about:blank - Google Chrome

0x01000006  1 google-chrome.Google-chrome  box QR-slot.png (500×500) - Google Chrome



google

wmctrl -i -r 0x01000005 -e 0,150,40,1000,800


wechat

wmctrl -i -r 0x01000002 -e 0,0,140,900,800


xdotool


xdotool search wechat

xdotool search ""


No comments:

Post a Comment