Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当我关闭 shortcut 显示后,窗口模式下,如何让那个红点居中呢? #43

Closed
scottming opened this issue Jul 23, 2017 · 8 comments

Comments

@scottming
Copy link

如题,用的是大屏,所以希望防止误按。

@ashfinal
Copy link
Owner

养成操作后随手按 q 或者 esc 的习惯。
没有红点居中选项,可以自己 fork 一份,改下 init.lua 文件里的红点坐标。

@scottming
Copy link
Author

请问下,具体是在哪个位置呢?不熟悉 Lua😂

@ashfinal
Copy link
Owner

https://github.com/ashfinal/awesome-hammerspoon/blob/master/init.lua#L136

@scottming
Copy link
Author

请问下新版的该在哪里修改了呢?

https://github.com/ashfinal/awesome-hammerspoon/blob/master/Spoons/ModalMgr.spoon/init.lua#L29 这个地方修改是无效的。

 modal_tray = hs.canvas.new(mainScreen:localToAbsolute({x=300,y=600,w=20,h=20}))

@scottming scottming reopened this Apr 26, 2018
@scottming
Copy link
Author

另外,我 git pull 最新版之后,shift + h/j/k/l 都无法移动了。变成了伸展,很不习惯。请问现在移动的快键键是啥?

@ashfinal
Copy link
Owner

ashfinal commented Apr 27, 2018

modal_tray 坐标在这里定义:

最新版改成用 a/w/s/d 移动了。按 tab 键可以切换 help panel。

@scottming
Copy link
Author

已经搞定了,非常感谢。最新版的整体架构合理了好多,看着很清爽。
另外 help panel 里面的上下左右,有什么用?切换的 focus app 么?为何按了之后没效果呢?

@ashfinal
Copy link
Owner

ashfinal commented Apr 27, 2018

另外 help panel 里面的上下左右,有什么用?

多屏显示器用的。比如说你连接了两台显示器,就可以一键把当前窗口移到另一台显示器。

如果只有一台显示器,是不起作用的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants