平铺窗口小脚本
发表于 : 2010-12-26 22:29
刚从XP转过来几个月...怀念窗口平铺功能...
正在学习shell脚本,只是个不大完善小作品,欢迎指正~
功能:将最上层的的两个窗口平铺(感觉多于2个窗口时看起来太小,故没有考虑...)
PS:在任务栏上加个执行按钮,配合使用...
正在学习shell脚本,只是个不大完善小作品,欢迎指正~

功能:将最上层的的两个窗口平铺(感觉多于2个窗口时看起来太小,故没有考虑...)
代码: 全选
#!/bin/bash
#to place the top 2 windows in order
#move the top window to (0,0) and resize it into 640x740
xdotool key alt+F5 #turn the window into normal size
xdotool getactivewindow windowmove 0 0 windowsize 640 740
#switch to the 2nd window
xdotool key --clearmodifiers alt+Tab
#move and resize the 2nd window
xdotool key alt+F5
xdotool getactivewindow windowmove 641 0 windowsize 640 740