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/i3/default.nix | 103 ----------------------------------------- 1 file changed, 103 deletions(-) delete mode 100644 modules/desktop/i3/default.nix (limited to 'modules/desktop/i3/default.nix') diff --git a/modules/desktop/i3/default.nix b/modules/desktop/i3/default.nix deleted file mode 100644 index b3d0672..0000000 --- a/modules/desktop/i3/default.nix +++ /dev/null @@ -1,103 +0,0 @@ -# i3 - Window manager configuration (gaps, colors, startup, keybindings) -{ - config, - lib, - pkgs, - ... -}: -{ - config = lib.mkIf config.desktop.enable { - xsession.windowManager.i3 = { - enable = true; - config = with config.scheme.withHashtag; { - modifier = "Mod4"; # Super - - bars = [ ]; - - gaps = { - inner = 10; - top = 50; # NOTE: Based on height of polybar - outer = 0; - }; - - window = { - border = 1; - titlebar = false; - }; - - colors = { - focused = { - border = base03; - background = base03; - text = base07; - indicator = base03; - childBorder = base03; - }; - focusedInactive = { - border = base02; - background = base02; - text = base05; - indicator = base02; - childBorder = base02; - }; - unfocused = { - border = base02; - background = base02; - text = base05; - indicator = base02; - childBorder = base02; - }; - }; - - defaultWorkspace = "workspace number 1"; - - window.commands = [ - { - command = "floating enable, resize set 1280 720, move position center"; - criteria.class = "file-explorer"; - } - { - command = "floating enable, resize set 800 600, move position center"; - criteria.class = "application-launcher"; - } - { - command = "floating enable, resize set 1280 720, move position center"; - criteria.class = "keybindings-viewer"; - } - ]; - - focus.followMouse = true; - - startup = [ - { - command = "xrandr -q | grep -w 'connected' | cut -d' ' -f1 | xargs -I{} i3-msg \"workspace 1 output {}\""; - always = false; - notification = false; - } - { - command = - if config.media.feh.enable then - "${lib.getExe pkgs.feh} --bg-scale ${../../../assets/sapling.png}" - else - "xsetroot -solid \"${config.scheme.withHashtag.base00}\""; - always = true; - notification = false; - } - ]; - - keybindings = lib.mkOptionDefault ( - import ./keybindings.nix { - inherit - lib - config - ; - } - ); - }; - extraConfig = '' - exec_always --no-startup-id xrandr -q | grep -w 'connected' | cut -d' ' -f1 | xargs -I{} i3-msg "workspace 1 output {}" - exec_always --no-startup-id "polybar-msg cmd restart" - ''; - }; - }; -} -- cgit v1.2.3