Closed nikitavoloboev closed 7 years ago
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. : )
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 :
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.
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.
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.
Yes, this is exactly what I wanted. Thank you so much for this. ♥
I find always seeing the network monitoring really distracting. So as seeing DOCK MODE.
What I think would be great, is to always hide it by default, and only show users what mode they are in that is not the default. So if I was in resize window mode, it would show me this permanently until I quit the mode :
When in view mode, show this :
And so on. Absence of the mode bar, indicates that I am in normal mode. This would be really amazing to have to complete this superb hammer spoon framework. Thank you for this.
I hope this would be possible to change.