Git Product home page Git Product logo

Comments (6)

ashfinal avatar ashfinal commented on July 19, 2024

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.

nikitavoloboev avatar nikitavoloboev commented on July 19, 2024

I tried adding the line to my awesomeconfig.lua file but I get this error :

2017-01-01 at 13 34

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 :

2017-01-01 at 13 39

from awesome-hammerspoon.

ashfinal avatar ashfinal commented on July 19, 2024

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.

nikitavoloboev avatar nikitavoloboev commented on July 19, 2024

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.

ashfinal avatar ashfinal commented on July 19, 2024

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.

nikitavoloboev avatar nikitavoloboev commented on July 19, 2024

Yes, this is exactly what I wanted. Thank you so much for this. ♥

from awesome-hammerspoon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.