Comments (9)
I've never used karabiner.
But from this tutorial, I think the functionality can be
implemented. The example in tutorial is quite similar to yours.
from awesome-hammerspoon.
Oh no, you misunderstood me. I know how to call lua functions from Karabiner. What I don't know, is what to call to get the winhints show up. I don't get where it is defined so I can move it to just my init.lua to call from. :)
from awesome-hammerspoon.
I just saw your init.lua
file.
Do you mean that you can call all lua functions from Karabiner, except "showWindowHints" function?
If so, that doesn't make sense. Showing windows hint did not link to modal switching, and was not defined anywhere else. It belongs to Hammerspoon's original functions.
I just test the code below in Hammerspoon console with your init.lua
file, and it works as intended.
hs.urlevent.openURLWithBundle("hammerspoon://showWindowHints","com.apple.Safari")
So I presume you may do something wrong on Karabiner's side. Wish that helps. :)
from awesome-hammerspoon.
Well I am only calling hs.hints.windowHints()
but that is not enough it seems.
Do you use something to draw the icons that show up and the lettering here :
from awesome-hammerspoon.
No, I didn't do anything else. http://www.hammerspoon.org/docs/hs.hints.html
You can see something in Hammerspoon console which can help to identify the problem?
from awesome-hammerspoon.
Hey @ashfinal, I think I got it working now. :D
One thing though is that for some reason it doesn't display window names when there are many windows open :
from awesome-hammerspoon.
Did you add anything to hs.hints.windowHints()
to get around this?
from awesome-hammerspoon.
@nikitavoloboev By default window hints will show their titles if there are less than 4 windows on screen.
hs.hints.showTitleThresh = 0
Change 0
to some number larger than 4, this should do the work.
from awesome-hammerspoon.
Thank you a lot @ashfinal, this worked
from awesome-hammerspoon.
Related Issues (20)
- 当我关闭 shortcut 显示后,窗口模式下,如何让那个红点居中呢? HOT 8
- Add a shortcut to show/hide all widgets HOT 5
- Unable to disable window hints HOT 1
- Calendar date is not correct HOT 1
- CountDown spoon causes switching spaces to focus on Hammerspoon rather than currently visible application HOT 5
- interacting with workspaces? HOT 1
- A alternative window mover approach? HOT 5
- Can I only use left alt with hammerspoon? HOT 1
- How to disable the cheatsheet when I press "alt + A"
- Can window be set to two-thirds and one-third of the screen? HOT 1
- how to open Terminal? HOT 1
- WinWin Spoon is newer than this in Hammerspoon website
- Some Window Manipulations don't work
- git warning HOT 1
- BingDaily don't refresh every 3h
- 老哥,HCalendar被Dock栏遮挡如何解决 HOT 2
- WinWin doesn't split windows equal size
- Hsearch call chooser:hide() block me 3 seconds HOT 1
- Slow windows hints HOT 1
- 大佬,如果只想要cheatsheet和aria2c这两个功能的话,我应该怎么编辑配置文件呢
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awesome-hammerspoon.