(laptop) Gen 18: added separate hyprland config logic to differentiate between laptop and desktop environments

This commit is contained in:
pagedmov
2024-10-14 03:27:49 -04:00
parent 6dbe561378
commit 182737c227
5 changed files with 209 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
{ username, ... }:
{ host, username, ... }:
{
services.hyprpaper = {
@@ -9,9 +9,11 @@
splash_offset = 2.0;
preload = [ "/home/${username}/Pictures/Wallpapers/cat-leaves.png" ];
wallpaper = [
wallpaper = if (host == "desktop") then [
"DP-1,/home/${username}/Pictures/Wallpapers/cat-leaves.png"
"HDMI-A-1,/home/${username}/Pictures/Wallpapers/cat-leaves.png"
] else [
"eDP-1,/home/${username}/Pictures/Wallpapers/cat-leaves.png"
];
};
};