hypr: fix handy autostart/binds for Hyprland's bare session PATH
Hyprland's session PATH is /usr/local/bin:/usr/bin, so handy-no in ~/.local/bin was never found: the Norwegian instance did not start at boot and the SUPER+Y/SHIFT+G binds failed silently. Reference the script by absolute path instead. Also start the English instance with --start-hidden so no window opens on login. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PC3PoJ2TQhr3LpbT5fT8FN
This commit is contained in:
@@ -26,6 +26,10 @@ local browser = "brave"
|
||||
local menu = "wofi --show drun"
|
||||
local pwManager = "bitwarden-desktop"
|
||||
|
||||
-- Hyprland's session PATH is /usr/local/bin:/usr/bin — no ~/.local/bin —
|
||||
-- so user scripts need their absolute path in autostart and binds.
|
||||
local handyNo = os.getenv("HOME") .. "/.local/bin/handy-no"
|
||||
|
||||
|
||||
-------------------
|
||||
---- AUTOSTART ----
|
||||
@@ -39,8 +43,8 @@ hl.on("hyprland.start", function()
|
||||
-- hl.exec_cmd("wl-paste --type image --watch cliphist store") -- Stores only image data
|
||||
|
||||
hl.exec_cmd("nextcloud --background")
|
||||
hl.exec_cmd("handy") -- English instance (parakeet)
|
||||
hl.exec_cmd("handy-no start") -- Norwegian instance (whisper-large-v3), private D-Bus + own data dir
|
||||
hl.exec_cmd("handy --start-hidden") -- English instance (parakeet)
|
||||
hl.exec_cmd(handyNo .. " start") -- Norwegian instance (whisper-large-v3), private D-Bus + own data dir
|
||||
|
||||
-- Launch apps on specific workspaces (window rules below)
|
||||
hl.exec_cmd("ghostty -e tmux")
|
||||
@@ -231,10 +235,10 @@ hl.bind(mainMod .. " + V", hl.dsp.exec_cmd("cliphist list | wofi --dmenu | cliph
|
||||
-- (plain --toggle-transcription avoids the 0.9.4 unconfigured-post-process segfault).
|
||||
hl.bind(mainMod .. " + T", hl.dsp.exec_cmd("handy --toggle-transcription"))
|
||||
hl.bind(mainMod .. " + T", hl.dsp.exec_cmd("handy --toggle-transcription"), { release = true })
|
||||
hl.bind(mainMod .. " + Y", hl.dsp.exec_cmd("handy-no toggle"))
|
||||
hl.bind(mainMod .. " + Y", hl.dsp.exec_cmd("handy-no toggle"), { release = true })
|
||||
hl.bind(mainMod .. " + Y", hl.dsp.exec_cmd(handyNo .. " toggle"))
|
||||
hl.bind(mainMod .. " + Y", hl.dsp.exec_cmd(handyNo .. " toggle"), { release = true })
|
||||
hl.bind(mainMod .. " + G", hl.dsp.exec_cmd("handy"))
|
||||
hl.bind(mainMod .. " + SHIFT + G", hl.dsp.exec_cmd("handy-no gui"))
|
||||
hl.bind(mainMod .. " + SHIFT + G", hl.dsp.exec_cmd(handyNo .. " gui"))
|
||||
|
||||
hl.bind("SUPER + SHIFT + L", hl.dsp.exec_cmd("hyprlock"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user