手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆

升级到MacOS 12后。Moom打不开了

首页 > 苹果相关 >

 系统升级到12后。Moom打不开了,在命令行直接open,显示Bus Error,一下子想不到怎么弄,干脆,不用了,换成hammorspoon,然后单独配置。

由于我用moom其实主要就是用了5组窗口(其实常见7种),1、左右 各50%,2:40:60,3、4/13,9/13,4:100%

1、50:50,用于放微信和QQ窗口
2、40:60,用于放便签和word,在高分屏下,word,如果全屏,反而字很小,干脆放60%左右
3、4/13和9/13,用于放终端和IDE,还有一组是MAC模拟器和Code(写flutter的时候用得上)
4、100%,用于给浏览器使用

配置,我把0.4的去掉了。
配置如下:

XML/HTML代码
  1. hs.window.animationDuration = 0  
  2. units = {  
  3.   right50       = { x = 0.50, y = 0.00, w = 0.50, h = 1.00 },  
  4.   left50        = { x = 0.00, y = 0.00, w = 0.50, h = 1.00 },  
  5.   left_4_13     = { x = 0.00, y = 0.00, w = 4/13, h = 1.00 },  
  6.   right_9_13     = { x = 4/13, y = 0.00, w = 9/13, h = 1.00 },  
  7.   maximum       = { x = 0.00, y = 0.00, w = 1.00, h = 1.00 }  
  8. }  
  9. hs.hotkey.bind({"alt" }, "1", function()  
  10.   hs.window.focusedWindow():move(units.left50, nil, true)  
  11. end)  
  12. hs.hotkey.bind({"alt" }, "2", function()  
  13.   hs.window.focusedWindow():move(units.right50, nil, true)  
  14. end)  
  15.   
  16. hs.hotkey.bind({"alt" }, "5", function()  
  17.   hs.window.focusedWindow():move(units.left_4_13, nil, true)  
  18. end)  
  19.   
  20. hs.hotkey.bind({"alt" }, "6", function()  
  21.   hs.window.focusedWindow():move(units.right_9_13, nil, true)  
  22. end)  
  23.   
  24. hs.hotkey.bind({"alt" }, "0", function()  
  25.   hs.window.focusedWindow():move(units.maximum, nil, true)  
  26. end)  

代码里没有0.4/0.6的,自己配一下就可以了,上述命令其实是:alt+数字,为什么用这个,是因为这个快捷键的冲突比较小(几乎没有见到有冲突)

如果复制不方便,还可以看这个gist:https://gist.github.com/neatstudio/ec8a26ed237e4a98667a878d8fd3c8cd

 

 




本站采用创作共享版权协议, 要求署名、非商业和保持一致. 本站欢迎任何非商业应用的转载, 但须注明出自"易栈网-膘叔", 保留原始链接, 此外还必须标注原文标题和链接.

Tags: gist, moom, hammerspoon

« 上一篇 | 下一篇 »

只显示10条记录相关文章

试用gist (浏览: 14893, 评论: 0)

发表评论

评论内容 (必填):