hyprland settings rework

This commit is contained in:
2026-09-12 22:52:47 +01:00
parent d41aac2a41
commit bc9794ff00
6 changed files with 410 additions and 298 deletions
+4 -10
View File
@@ -15,7 +15,7 @@
};
modules.helium = settings: {
homeManager =
{ pkgs, ... }:
{ pkgs, lib, ... }:
let
heliumPkg = inputs.heliumFlake.packages.${pkgs.stdenv.hostPlatform.system}.helium;
# The upstream `helium` launcher is a plain Nix wrapper that ignores any
@@ -53,15 +53,9 @@
xdg.configFile."net.imput.helium/WidevineCdm/latest-component-updated-widevine-cdm" = {
text = ''{"Path":"${pkgs.widevine-cdm}/share/google/chrome/WidevineCdm"}'';
};
wayland.windowManager.hyprland.extraLuaFiles = lib.mkIf settings.default {
"helium-bind.lua" = {
autoLoad = true;
content = ''
-- Helium launcher bind (lua config: settings.bind cannot express dispatchers)
hl.bind("SUPER + E", hl.dsp.exec_cmd("helium"))
'';
};
};
wayland.windowManager.hyprland.settings.bind = lib.mkIf settings.default [
{ _args = [ "SUPER + E" (lib.generators.mkLuaInline ''hl.dsp.exec_cmd("helium")'') ]; }
];
};
};
}