Integration with Raycast
This commit is contained in:
@@ -6,14 +6,6 @@ hs.dockIcon(false)
|
||||
hs.ipc.cliInstall("/opt/homebrew")
|
||||
hs.alert.show("Hammerspoon Headless Daemon Active", 2)
|
||||
|
||||
-- ========================================================================
|
||||
-- HEADLESS WORKSPACE BACKGROUND ENGINE (FORCED AT BOOT)
|
||||
-- ========================================================================
|
||||
hs.menuIcon(false)
|
||||
hs.dockIcon(false)
|
||||
hs.ipc.cliInstall("/opt/homebrew")
|
||||
hs.alert.show("Hammerspoon Headless Daemon Active", 2)
|
||||
|
||||
-- ~/.hammerspoon/init.lua
|
||||
-- Load Config First
|
||||
-- config = require("Config")
|
||||
@@ -24,7 +16,10 @@ require("HyperKey")
|
||||
require('SearchWindows')
|
||||
require('Caffeine')
|
||||
require('AppBorders')
|
||||
require('LayoutSelector')
|
||||
|
||||
-- CRITICAL FOR RAYCAST INTERACTION: Bind the return value to a global variable
|
||||
LayoutSelector = require('LayoutSelector')
|
||||
|
||||
require('System_Tweaks') -- Used for Time Machine Throttle Disable
|
||||
-- require("Focus") -- Does not work with layout saver - Not needed if using Monocle
|
||||
Network = require("NetworkCenter")
|
||||
@@ -37,23 +32,19 @@ local productivity = require("productivity")
|
||||
local quickNote = require("affine_quick_note")
|
||||
quickNote.init()
|
||||
require("affine_clipper"):init()
|
||||
---
|
||||
-- Load Google API Monitor
|
||||
-- local googleMonitor = require("google_monitor")
|
||||
-- googleMonitor.init()
|
||||
--
|
||||
|
||||
-- Load Spoon Files
|
||||
hs.loadSpoon('SpoonInstall')
|
||||
hs.loadSpoon('SpeedMenu')
|
||||
hs.loadSpoon('BrewInfo')
|
||||
-- hs.loadSpoon('Seal')
|
||||
|
||||
--- 3. Run/Configure Spoons
|
||||
-- ==========================================
|
||||
-- SPOON CONFIGURATION
|
||||
-- ==========================================
|
||||
|
||||
---- SpeedMenu Config
|
||||
if spoon.SpeedMenu then
|
||||
-- 1. Define the Fix Function (includes MAC and IPv6)
|
||||
-- Define the Fix Function (includes MAC and IPv6)
|
||||
local function applyFullMenuFix()
|
||||
local interface = spoon.SpeedMenu.interface or "en0"
|
||||
local ssid = hs.wifi.currentNetwork() or "Disconnected"
|
||||
@@ -76,14 +67,14 @@ if spoon.SpeedMenu then
|
||||
spoon.SpeedMenu.menubar:setMenu(menuitems)
|
||||
end
|
||||
|
||||
-- 2. Hook the rescan method
|
||||
-- Hook the rescan method
|
||||
local oldRescan = spoon.SpeedMenu.rescan
|
||||
spoon.SpeedMenu.rescan = function(self)
|
||||
oldRescan(self)
|
||||
applyFullMenuFix()
|
||||
end
|
||||
|
||||
-- 3. Toggle Logic (Starts as OFF)
|
||||
-- Toggle Logic (Starts as OFF)
|
||||
local speedMenuRunning = false
|
||||
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "W", function()
|
||||
if speedMenuRunning then
|
||||
@@ -110,6 +101,4 @@ if spoon.BrewInfo then
|
||||
end
|
||||
---- BrewInfo END
|
||||
|
||||
-- Add this line to the module section of your init.lua
|
||||
|
||||
hs.alert.show("Hammerspoon Config Reloaded")
|
||||
Reference in New Issue
Block a user