[Hyprland] Migrates to new lua-based config

This commit is contained in:
2026-05-31 14:41:17 -07:00
parent 07280e20ea
commit 32393d5ffe
20 changed files with 1168 additions and 625 deletions

View File

@@ -21,7 +21,7 @@
enable = true;
# See https://github.com/S41G0N/ly/blob/master/res/config.ini
settings = {
animation = "matrix"; # matrix|doom|none
animation = "doom"; # matrix|doom|none
bigclock = "en";
clear_password = true; # erase the password on failure
clock = "%c"; # Show the clock

View File

@@ -18,7 +18,7 @@
networking.networkmanager.enable = true;
# Disable wpa-supplicant to avoid conflicts with network manager.
# Appears this is not needed as of 26.05
# networking.wireless.enable = false;
networking.wireless.enable = true;
# Set your time zone.
time.timeZone = "America/Los_Angeles";

View File

@@ -48,16 +48,17 @@ in
};
};
wayland.windowManager.hyprland.settings = {
exec-once = [
# Set up eww here because it's based on the monitor configuration
"sleep 2 && eww open-many primary-statusbar secondary-statusbar"
# Set DP-2 as the primary monitor, otherwise it defaults to DP-1 because it's first in the list.
"xrandr --output DP-2 --primary"
];
windowrule = [
# Rofi doesn't center properly when I have the two asymetric monitors, so we need hyprland to manage it.
"match:class Rofi, center on"
];
};
# TODO: Merge into lua config
# wayland.windowManager.hyprland.settings = {
# exec-once = [
# # Set up eww here because it's based on the monitor configuration
# "sleep 2 && eww open-many primary-statusbar secondary-statusbar"
# # Set DP-2 as the primary monitor, otherwise it defaults to DP-1 because it's first in the list.
# "xrandr --output DP-2 --primary"
# ];
# windowrule = [
# # Rofi doesn't center properly when I have the two asymetric monitors, so we need hyprland to manage it.
# "match:class Rofi, center on"
# ];
# };
}

View File

@@ -86,7 +86,7 @@
#
# Current versions can be found in https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/os-specific/linux/nvidia-x11/default.nix
#
package = config.boot.kernelPackages.nvidiaPackages.beta;
package = config.boot.kernelPackages.nvidiaPackages.stable;
modesetting.enable = true;

View File

@@ -34,24 +34,25 @@
email = "periodic@blazestar.net";
};
wayland.windowManager.hyprland.settings = {
# Set up eww here because it's based on the monitor configuration
# Eww is idempotent, so it's fine to just run it on every reload to make sure things are open
exec-once = [
"sleep 2 && eww open-many vertical-statusbar"
];
# Set up workspaces for this system
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
workspace = [
"1, defaultName:1"
"2, defaultName:2"
"3, defaultName:3"
"4, defaultName:4"
"5, defaultName:5"
"6, defaultName:6"
"7, defaultName:7"
"8, defaultName:8"
"9, defaultName:9"
];
};
# TODO: Merge into LUA configs
# wayland.windowManager.hyprland.settings = {
# # Set up eww here because it's based on the monitor configuration
# # Eww is idempotent, so it's fine to just run it on every reload to make sure things are open
# exec-once = [
# "sleep 2 && eww open-many vertical-statusbar"
# ];
# # Set up workspaces for this system
# # See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
# workspace = [
# "1, defaultName:1"
# "2, defaultName:2"
# "3, defaultName:3"
# "4, defaultName:4"
# "5, defaultName:5"
# "6, defaultName:6"
# "7, defaultName:7"
# "8, defaultName:8"
# "9, defaultName:9"
# ];
# };
}