refactored theme configuration to use stylix instead of individually theming each program
This commit is contained in:
@@ -10,6 +10,6 @@
|
||||
in {
|
||||
imports =
|
||||
[(import ./hyprland.nix)]
|
||||
++ [(import ./hyprpaper.nix)]
|
||||
# ++ [(import ./hyprpaper.nix)]
|
||||
++ host_config;
|
||||
}
|
||||
|
||||
@@ -1,12 +1,19 @@
|
||||
{username, host, ...}: {
|
||||
{
|
||||
username,
|
||||
host,
|
||||
...
|
||||
}: {
|
||||
wayland.windowManager.hyprland = {
|
||||
settings = {
|
||||
monitor = if (host == "oganesson") then [
|
||||
"DP-1, 1920x1080@144, 1920x0, 1"
|
||||
"HDMI-A-1, 1920x1080, 0x0, 1"
|
||||
] else [
|
||||
"eDP-1, 1600x900, 0x0, 1"
|
||||
];
|
||||
monitor =
|
||||
if (host == "oganesson")
|
||||
then [
|
||||
"DP-1, 1920x1080@144, 1920x0, 1"
|
||||
"HDMI-A-1, 1920x1080, 0x0, 1"
|
||||
]
|
||||
else [
|
||||
"eDP-1, 1600x900, 0x0, 1"
|
||||
];
|
||||
|
||||
exec-once = [
|
||||
"waybar &"
|
||||
@@ -19,19 +26,22 @@
|
||||
"aplay /home/${username}/sound/sys/login.wav &"
|
||||
];
|
||||
|
||||
workspace = if (host == "oganesson") then [
|
||||
"1,persistent=true,monitor:HDMI-A-1"
|
||||
"2,persistent=true,monitor:HDMI-A-1"
|
||||
"3,persistent=true,monitor:HDMI-A-1"
|
||||
"4,persistent=true,monitor:DP-1"
|
||||
"5,persistent=true,monitor:DP-1"
|
||||
"6,persistent=true,monitor:DP-1"
|
||||
] else [
|
||||
"1,persistent=true,monitor:eDP-1"
|
||||
"2,persistent=true,monitor:eDP-1"
|
||||
"3,persistent=true,monitor:eDP-1"
|
||||
"4,persistent=true,monitor:eDP-1"
|
||||
];
|
||||
workspace =
|
||||
if (host == "oganesson")
|
||||
then [
|
||||
"1,persistent=true,monitor:HDMI-A-1"
|
||||
"2,persistent=true,monitor:HDMI-A-1"
|
||||
"3,persistent=true,monitor:HDMI-A-1"
|
||||
"4,persistent=true,monitor:DP-1"
|
||||
"5,persistent=true,monitor:DP-1"
|
||||
"6,persistent=true,monitor:DP-1"
|
||||
]
|
||||
else [
|
||||
"1,persistent=true,monitor:eDP-1"
|
||||
"2,persistent=true,monitor:eDP-1"
|
||||
"3,persistent=true,monitor:eDP-1"
|
||||
"4,persistent=true,monitor:eDP-1"
|
||||
];
|
||||
|
||||
input = {
|
||||
kb_layout = "us";
|
||||
@@ -47,8 +57,6 @@
|
||||
gaps_in = 4;
|
||||
gaps_out = 8;
|
||||
border_size = 2;
|
||||
"col.active_border" = "rgb(cba6f7) rgb(94e2d5) 45deg";
|
||||
"col.inactive_border" = "0x00000000";
|
||||
border_part_of_window = false;
|
||||
no_border_on_floating = false;
|
||||
};
|
||||
@@ -104,7 +112,6 @@
|
||||
shadow_offset = "0 2";
|
||||
shadow_range = 20;
|
||||
shadow_render_power = 3;
|
||||
"col.shadow" = "rgba(00000055)";
|
||||
};
|
||||
|
||||
animations = {
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
{
|
||||
host,
|
||||
username,
|
||||
self,
|
||||
...
|
||||
}: {
|
||||
services.hyprpaper = {
|
||||
enable = true;
|
||||
settings = {
|
||||
ipc = "on";
|
||||
splash = false;
|
||||
splash_offset = 2.0;
|
||||
preload = ["${self}/media/wallpapers/catppuccin/cat-leaves.png"];
|
||||
|
||||
wallpaper =
|
||||
if (host == "oganesson")
|
||||
then [
|
||||
"DP-1,${self}/media/wallpapers/catppuccin/cat-leaves.png"
|
||||
"HDMI-A-1,${self}/media/wallpapers/catppuccin/cat-leaves.png"
|
||||
]
|
||||
else [
|
||||
"eDP-1,${self}/media/wallpapers/catppuccin/cat-leaves.png"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user