Monitor specific configs in hosts

This commit is contained in:
2025-04-15 17:48:57 +02:00
parent 980334b44b
commit 4a884f5e6e
12 changed files with 63 additions and 65 deletions

View File

@ -18,10 +18,6 @@ rec {
options = "grp:alt_shift_toggle"; # Toggle using ALT + SHIFT
};
# Empty matches all
monitor1 = "DP-1";
monitor2 = "DP-3";
username = "martin";
root = ../.;

View File

@ -1,4 +1,4 @@
# Home configurations for Hyprland. For system configs, see ./modules/hyprland
# Home configurations for Hyprland. For system configs, see ./shared/modules/hyprland
{
imports = [
./binds.nix

View File

@ -1,7 +1,6 @@
# Wallpapers
{
pkgs,
common,
theme,
...
}:
@ -13,8 +12,7 @@
enable = true;
settings =
let
monitor1 = builtins.toString theme.wallpaper.monitor1;
monitor2 = builtins.toString theme.wallpaper.monitor2;
defaultWallpaper = builtins.toString theme.wallpaper.default;
in
{
ipc = "on";
@ -22,13 +20,11 @@
splash_offset = 2.0;
preload = [
monitor1
monitor2
defaultWallpaper
];
wallpaper = [
"${common.monitor1},${monitor1}"
"${common.monitor2},${monitor2}"
",${defaultWallpaper}"
];
};
};

View File

@ -10,8 +10,7 @@ in
{
wayland.windowManager.hyprland.settings = {
monitor = [
"${common.monitor1}, 3440x1440@175, 0x0, 1"
"${common.monitor2}, 3840x2160@60, 3440x0, 1.5, transform, 1"
", preferred, auto, 1"
];
# Autostart

View File

@ -5,8 +5,9 @@ rec {
nerdFont = "JetBrainsMono";
wallpaper = {
wallpaper = rec {
lockscreen = ./assets/catppuccin_page_curl.png;
default = monitor1;
monitor1 = ./assets/nixos_waves.png;
monitor2 = ./assets/ekg_v2.png;
};