diff --git a/hypr/.config/hypr/hyprland.lua b/hypr/.config/hypr/hyprland.lua index 22678a2..a0e91be 100644 --- a/hypr/.config/hypr/hyprland.lua +++ b/hypr/.config/hypr/hyprland.lua @@ -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"))