1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

XQuartzでウィンドウがどっか行く

Posted at

#いつも忘れる
メモです。

##インストール

brew install wmctrl

##これで帰ってくる(例)

% wmctrl -G -l 
0x01200003  0 1112 45   742  934  remote Mozilla Firefox
...

% wmctrl -i -r 0x01200003 -e 0,1280,0,640,360

wmctrl -G -lで対象のWindow IDを調べて、
wmctrl -i -r $(Window ID) -e 0,1280,0,640,360で移動って感じですね。

##対象のウィンドウが一つだけの時
この一行

 wmctrl -G -l|cut -d ' ' -f 1|read id|wmctrl -i -r $id -e 0,1280,0,640,360 

zshでないと動かないらしい?

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?