diff --git a/hammerspoon.org b/hammerspoon.org index 8f29b60..b0ac635 100644 --- a/hammerspoon.org +++ b/hammerspoon.org @@ -122,7 +122,9 @@ Now we can load, instantiate it, as well as create a callback loop to call =upda And bind a key to the mute ability that works good for both keyboards: #+BEGIN_SRC lua - hs.hotkey.bind({"cmd", "alt", "ctrl", "shift"}, "M", spoon.Zoom:toggleMute) + hs.hotkey.bind({"cmd", "alt", "ctrl", "shift"}, "M", function() + spoon.Zoom:toggleMute() + end) hs.hotkey.bind({"cmd", "alt", "ctrl"}, "M", function() spoon.Zoom:toggleMute() @@ -190,6 +192,14 @@ Not that we could also do something for Wake: end #+END_SRC +Oh, and here is a helper for [[file:laptop_keyboard.kbd][kanata]] to put the display to sleep: + +#+BEGIN_SRC lua + hs.hotkey.bind({}, "F16", function() + hs.execute("pmset displaysleepnow") + end) +#+END_SRC + * Monitors My company gave me a nice monitor … maybe a little too nice, as I don’t care to shift my neck to the extreme sides (serious first-world problem), so here I can /center/ a window Keeping it my field of view: diff --git a/laptop_keyboard.kbd b/laptop_keyboard.kbd index 828501e..0446002 100644 --- a/laptop_keyboard.kbd +++ b/laptop_keyboard.kbd @@ -54,7 +54,7 @@ ) (deflayer SYMBOLS - esc πŸ”… πŸ”† F3 F4 f5 f6 β—€β—€ ▢⏸ β–Άβ–Ά πŸ”‡ πŸ”‰ πŸ”Š + esc πŸ”… πŸ”† F3 F4 f5 f16 β—€β—€ ▢⏸ β–Άβ–Ά πŸ”‡ πŸ”‰ πŸ”Š _ f11 f12 f13 f14 f15 f16 f17 f18 f19 f20 _ _ _ _ S-1 S-2 { } S-\ F16 F17 F18 F19 pgup _ _ _ _ S-3 S-4 S-9 S-0 ` left down up right pgdn _ _