Comments (6)
Just put the line below into ~/.hammerspoon/private/awesomeconfig.lua
and reload configure.
idle_to_which = “hide"
Then see if it works as intended.
You are welcome. : )
from awesome-hammerspoon.
I tried adding the line to my awesomeconfig.lua file but I get this error :
And here it is in text :
2017-01-01 13:36:04: -- Lazy extension loading enabled
2017-01-01 13:36:04: -- Loading ~/.hammerspoon/init.lua
2017-01-01 13:36:04: -- Loading extension: hotkey
2017-01-01 13:36:04: 13:36:04 hotkey: Enabled hotkey ⌘⌃⌥I
2017-01-01 13:36:04: hotkey: Enabled hotkey ⌘⌃⌥K
2017-01-01 13:36:04: hotkey: Enabled hotkey ⌘⇧F12
2017-01-01 13:36:04: -- Loading extension: wifi
2017-01-01 13:36:04: hotkey: Enabled hotkey ⌘⌃⌥W
2017-01-01 13:36:04: -- Loading extension: window
2017-01-01 13:36:04: -- Loading extension: uielement
2017-01-01 13:36:04: -- Loading extension: urlevent
2017-01-01 13:36:04: -- Loading extension: drawing
2017-01-01 13:36:04: -- Loading extension: fs
2017-01-01 13:36:04: *** ERROR: error loading module 'private/awesomeconfig' from file '/Users/nikivi/.hammerspoon/private/awesomeconfig.lua':
/Users/nikivi/.hammerspoon/private/awesomeconfig.lua:13: unexpected symbol near '<\226>'
stack traceback:
[C]: in ?
[C]: in function 'rawrequire'
...app/Contents/Resources/extensions/hs/_coresetup/init.lua:449: in function 'require'
/Users/nikivi/.hammerspoon/init.lua:125: in main chunk
[C]: in function 'xpcall'
...app/Contents/Resources/extensions/hs/_coresetup/init.lua:481: in function 'hs._coresetup.setup'
(...tail calls...)
I tried it both on empty awesomeconfig.lua file and adding it as separate line. Both threw the error at me. This is all I have in my awesomeconfig file :
from awesome-hammerspoon.
My bad. 😓 I forget to toggle input method before typing.
idle_to_which = "hide"
or
idle_to_which = 'hide'
Both are ok. It should be "English" doube-quote symbol.
from awesome-hammerspoon.
Thank you. Is it possible to lower the time it goes to idle mode to 1 or 2 seconds when switching from other modes. So it just flashes briefly and then hides away.
from awesome-hammerspoon.
Sorry, for now there is not this option.
But if it's very important to you, and you can read some code, and you don't care interrupting the update procedure.
Change the 12th line of ~/.hammerspoon/modalmgr.lua
:
idletimer = hs.timer.doEvery(5,check_idle)
Change 5 to the number you want.
from awesome-hammerspoon.
Yes, this is exactly what I wanted. Thank you so much for this. ♥
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.