lululau
V2EX  ›  macOS

分享个保存和恢复窗口的坐标尺寸的脚本

  •  
  •   lululau · May 22, 2013 · 2975 views
    This topic created in 4750 days ago, the information mentioned may be changed or developed.
    Mac 连接外接显示设备后,由于外接设备和内建显示器的分辨率不一致,因此在 eject 外接显示设备之后,往往都需要重新调整各个程序的窗口大小。https://gist.github.com/lululau/5624957 这两个程序解决了这个麻烦。
    在连接外接设备前,调用:

    ./bounds-save.sh > bounds.data

    来保存当前打开的各个窗口的坐标和尺寸。

    断开设备后调用:

    ./bounds-restore.pl < bounds.data | osascript -ss

    来恢复各个窗口的坐标和尺寸。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3016 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 14:45 · PVG 22:45 · LAX 07:45 · JFK 10:45
    ♥ Do have faith in what you're doing.