53 lines
1.6 KiB
Lua
53 lines
1.6 KiB
Lua
-- ========================================================================
|
|
-- HEADLESS WORKSPACE BACKGROUND ENGINE (FORCED AT BOOT)
|
|
-- ========================================================================
|
|
hs.allowAppleScript(true)
|
|
hs.menuIcon(false)
|
|
hs.dockIcon(false)
|
|
hs.ipc.cliInstall("/opt/homebrew")
|
|
hs.alert.show("Hammerspoon Headless Daemon Active", 2)
|
|
|
|
-- Core Subsystems and Global Bindings
|
|
require("HyperKey")
|
|
require('SearchWindows')
|
|
require('Caffeine')
|
|
require('AppBorders')
|
|
|
|
-- IPC Bridges & Trackers
|
|
LayoutSelector = require('LayoutSelector')
|
|
|
|
-- Active Modules
|
|
require("modules.mouseJiggle").start()
|
|
local windowMgr = require("WindowManager")
|
|
local productivity = require("productivity")
|
|
|
|
-- DEEP FOCUS MODULE (New Integration)
|
|
local focus = require("modules.focus")
|
|
|
|
-- Affine Note Engine Integration
|
|
local quickNote = require("affine_quick_note")
|
|
quickNote.init()
|
|
require("affine_clipper"):init()
|
|
|
|
-- Spoons Engine & External Tool Integrations
|
|
hs.loadSpoon('SpoonInstall')
|
|
hs.loadSpoon('SpeedMenu')
|
|
hs.loadSpoon('BrewInfo')
|
|
|
|
-- Run isolated Spoon setup configurations
|
|
require("modules.spoon_config")
|
|
|
|
-- ========================================================================
|
|
-- RAYCAST / INTER-PROCESS COMMUNICATION (IPC) BRIDGE BINDINGS
|
|
-- ========================================================================
|
|
-- Expose the focus module methods globally so the hs CLI tool can call them
|
|
function ActivateDeepFocus(profileName)
|
|
return focus.activate(profileName)
|
|
end
|
|
|
|
function ClearDeepFocus()
|
|
return focus.clear()
|
|
end
|
|
|
|
-- Boot Confirmation
|
|
hs.alert.show("Hammerspoon Config Reloaded") |