Merge branch 'master' of github.com:pagedMov/nixos-config

This commit is contained in:
pagedmov
2024-10-21 13:06:04 -04:00
3 changed files with 68 additions and 9 deletions

View File

@@ -18,23 +18,23 @@
boot.extraModulePackages = []; boot.extraModulePackages = [];
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-partlabel/disk-main-root"; device = "/dev/sda4";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/nix" = { fileSystems."/nix" = {
device = "/dev/disk/by-partlabel/disk-main-nix"; device = "/dev/sda3";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-partlabel/disk-main-ESP"; device = "/dev/sda2";
fsType = "vfat"; fsType = "vfat";
options = ["fmask=0077" "dmask=0077"]; options = ["fmask=0077" "dmask=0077"];
}; };
fileSystems."/home" = { fileSystems."/home" = {
device = "/dev/disk/by-partlabel/disk-main-home"; device = "/dev/sda5";
fsType = "ext4"; fsType = "ext4";
}; };

View File

@@ -11,6 +11,7 @@ host,
# secondary monitor will have a vertical bar on the left side # secondary monitor will have a vertical bar on the left side
# Can contain more info with two bars # Can contain more info with two bars
let let
desktop = (host == "oganesson");
workspaces = { workspaces = {
format = "{icon}"; format = "{icon}";
format-icons = { format-icons = {
@@ -21,14 +22,14 @@ let
"5" = ""; "5" = "";
"6" = ""; "6" = "";
}; };
persistent-workspaces = if (host == "oganesson") then { persistent-workspaces = if desktop then {
"HDMI-A-1" = [ 1 2 3 ]; "HDMI-A-1" = [ 1 2 3 ];
"DP-1" = [ 4 5 6 ]; "DP-1" = [ 4 5 6 ];
} else { } else {
"eDP-1" = [ 1 2 3 4 ]; "eDP-1" = [ 1 2 3 4 ];
}; };
}; };
monitors = if (host == "oganesson") then [ monitors = if desktop then [
"DP-1" "DP-1"
"HDMI-A-1" "HDMI-A-1"
] else [ ] else [
@@ -44,7 +45,7 @@ in
name = "mainBar"; name = "mainBar";
margin-left = 8; margin-left = 8;
margin-top = 5; margin-top = 5;
margin-right = 8; margin-right = if desktop then 8 else 5;
mode = "dock"; mode = "dock";
modules-left = [ modules-left = [
@@ -168,7 +169,7 @@ in
programs.waybar.settings.sideBar = { programs.waybar.settings.sideBar = {
layer = "bottom"; layer = "bottom";
output = if (host == "oganesson") then builtins.elemAt monitors 1 else ""; output = if desktop then builtins.elemAt monitors 1 else builtins.elemAt monitors 0;
position = "right"; position = "right";
margin-top = 8; margin-top = 8;
margin-right = 5; margin-right = 5;
@@ -176,8 +177,11 @@ in
name = "sideBar"; name = "sideBar";
mode = "dock"; mode = "dock";
modules-left = [ modules-left = if desktop then [
"hyprland/workspaces" "hyprland/workspaces"
] else [
"group/brightness"
"battery"
]; ];
modules-center = [ modules-center = [
]; ];
@@ -223,5 +227,35 @@ in
tooltip-format-disconnected = "Disconnected"; tooltip-format-disconnected = "Disconnected";
on-click = "hyprctl dispatch exec '[float;size 40% 55%] kitty nmtui'"; on-click = "hyprctl dispatch exec '[float;size 40% 55%] kitty nmtui'";
}; };
battery = {
bat = "BAT1";
interval = 1;
tooltip-format = "{capacity}%\nTil empty: {time}";
tooltip-format-charging = "{capacity}%\nTil full: {time}";
format = "{icon}";
format-icons = [
"󰁺" "󰁻" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹"
];
format-charging = "󰂄";
};
"group/brightness" = {
orientation = "vertical";
modules = [
"backlight"
"backlight/slider"
];
};
backlight = {
format = "󰃠";
tooltip = "{percentage}%";
};
"backlight/slider" = {
min = 10;
max = 100;
orientation = "vertical";
rotate = 180;
};
}; };
} }

View File

@@ -146,12 +146,14 @@ in
font-size: 18px; font-size: 18px;
} }
#backlight-slider slider,
#pulseaudio-slider slider { #pulseaudio-slider slider {
background: #${colors.color4}; background: #${colors.color4};
background-color: transparent; background-color: transparent;
box-shadow: none; box-shadow: none;
} }
#backlight-slider trough,
#pulseaudio-slider trough { #pulseaudio-slider trough {
min-width: 9px; min-width: 9px;
min-height: 90px; min-height: 90px;
@@ -159,6 +161,7 @@ in
background: #343434; background: #343434;
} }
#backlight-slider highlight,
#pulseaudio-slider highlight { #pulseaudio-slider highlight {
border-radius: 8px; border-radius: 8px;
background-color: #2096C0; background-color: #2096C0;
@@ -172,5 +175,27 @@ in
margin: 3px; margin: 3px;
padding: 5px 0 5px 6px; padding: 5px 0 5px 6px;
} }
#brightness {
background: #${bg.dark};
border-radius: 20px;
margin: 3px;
padding: 10px 0px 5px 0;
}
#backlight {
color: #${colors.color2};
font-size: 18px;
padding: 0 4px 0 0;
}
#battery {
color: #${colors.color4};
font-size: 20px;
background: #${bg.dark};
border-radius: 20px;
margin: 3px;
padding: 5px 0 5px 0px;
}
''; '';
} }