From 0d946dd26f4418cec15717526283d030cdbb1001 Mon Sep 17 00:00:00 2001 From: voidarc Date: Fri, 10 Jul 2026 21:24:18 +0100 Subject: [PATCH] added some nonsense to see if this works --- modules/binds.lua | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/modules/binds.lua b/modules/binds.lua index f036ab8..43c9d98 100644 --- a/modules/binds.lua +++ b/modules/binds.lua @@ -162,12 +162,26 @@ local globalAppBinds = { { mod = subMod, key = { "SHIFT + mouse:272" }, dispatch = hl.dsp.window.resize(), opts = { mouse = true } }, } +-- Check for nixos +local function is_nixos() + local f = io.open("/etc/NIXOS", "r") + if f then + f:close() + return true + end + return false +end + -- Workspace switch keys for _, bind in ipairs(globalAppBinds) do local modBind = bind.mod or mainMod local command if type(bind.dispatch) ~= "string" then - command = bind.dispatch + local prepend = "" + if is_nixos() then + prepend = "/run/hypr-runtime-env/bin/" + end + command = prepend .. bind.dispatch else command = hl.dsp.exec_cmd(bind.dispatch) end