hammerspoon Questions
5
Solved
At work I have a 3 monitor setup. I would like to move the current application to a second or a third monitor with a key binding. How to do that?
Tracery asked 11/1, 2019 at 17:27
1
My issue is as follows: I have my caps lock remapped to F18 using Karabiner Elements, and then Hammerspoon uses F18 as a "hyper key" to perform app specific shortcuts.
My current code looks like...
Karakalpak asked 7/12, 2016 at 19:4
3
Solved
I just started using Hammerspoon. I'm trying to output multiple lines of text by pressing Cmd+Shift+l .
Here is what I have tried so far :
hs.hotkey.bind({"cmd", "shift"}, "l", function()
hs.eve...
Malignancy asked 29/3, 2018 at 13:58
3
Solved
I have installed the "undocumented spaces" module from https://github.com/asmagill/hs._asm.undocumented.spaces. In particular, it provides a method moveWindowToSpace that I am trying to use to bind...
Baggy asked 18/10, 2017 at 20:29
1
Solved
Ok, so I have a script with Hammerspoon that executes key stokes for me. Simple example:
hs.hotkey.bind({'cmd','alt','ctrl'}, "b", function()
hs.eventtap.keyStroke({}, "Left",...
Iatric asked 17/1, 2021 at 20:35
1
Solved
I'm looking at having a certain hotkey only available in Google Chrome:
hs.hotkey.bind({"cmd"}, "0", function()
if hs.window.focusedWindow():application():name() == 'Google Chr...
Regenaregency asked 8/9, 2020 at 14:0
1
Solved
I would like to separate init.lua script used in Hammerspoon to enhance the readability and maintainance.
So it looks like the following:
init.lua
AppWatcher.lua
WiFiWatcher.lua
KeyRemap.lua
A...
Tennietenniel asked 15/6, 2017 at 6:5
1
Solved
This is a extremely useful remap in my opinion, since you almost never type control alone, why not remap it to esc?
Since karabiner is gone I've been trying to restore my favourite feature using h...
Partlow asked 12/12, 2016 at 4:10
1
I use an automation software called hammerspoon on osx.
When I use the following code in hammerspoon's console, win is nil:
> local win = hs.window.focusedWindow()
> win
nil
But actually...
Fonz asked 12/1, 2016 at 12:35
1
Solved
I have my CAPSLOCK bound to F18 (karabiner) to act as a modifier key. I'm trying to simulate CAPSLOCK+h, j, k, l to act as VIM movement keys. Everything works but there's an issue with delay when r...
Itin asked 6/12, 2016 at 1:18
3
Solved
I am thinking of having a hammerspoon wifi watcher, which do a periodic check and will disable wifi if its not connected.
The following script does this,
function checkAndDisableWifi()
hs.timer...
Sickroom asked 13/9, 2016 at 16:19
1
Solved
I have a function that creates an object (in this case, a Hammerspoon Notify object), and I would like to pass this object as the parameter to an anonymous function that is itself an argument to a ...
Moyers asked 16/7, 2016 at 2:37
1
© 2022 - 2024 — McMap. All rights reserved.