From 892b62a3129a6ae30fa6b039e3f88d370d418319 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 25 Jul 2026 11:50:05 +0530 Subject: feat(hyprland): migrate config to Lua, fix API calls, switch to hyprpaper - Set configType = "lua" for Hyprland 0.55+ Lua config format - Rewrite window rules to use hl.window_rule({...}) table API - Convert keybindings to hl.bind() with _args + mkLuaInline - Fix dispatchers: hl.dsp.focus (not window.focus), hl.dsp.focus({workspace=}) (not workspace.switch) - Replace swaybg with services.hyprpaper module for wallpaper - Fix border colors to use base07 (white) / base03 (grey) with rgba() format - Reduce default font size from 16 to 12 --- modules/desktop/default.nix | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'modules/desktop/default.nix') diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index eb2eea6..a2fdfc8 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -1,4 +1,4 @@ -# Desktop - Desktop environment configuration (i3, GTK, polybar) +# Desktop - Desktop environment configuration (i3/Hyprland, GTK, polybar) { lib, config, @@ -6,10 +6,10 @@ }: { imports = [ - ./i3 ./gtk ./polybar ./xdg + ./hyprland ]; options.desktop = { @@ -18,19 +18,5 @@ config = lib.mkIf config.desktop.enable { xdg.enable = true; - xsession.enable = true; - - home.file.".xinitrc" = { - text = '' - #!/usr/bin/env sh - - [ -f ~/.Xresources ] && xrdb -merge ~/.Xresources - [ -f ~/.profile ] && . ~/.profile - [ -f ~/.xsession ] && . ~/.xsession - - exec ${config.xsession.windowManager.i3.package}/bin/i3 - ''; - executable = true; - }; }; } -- cgit v1.2.3