temp
This commit is contained in:
@@ -75,7 +75,6 @@ in
|
|||||||
layer = "bottom";
|
layer = "bottom";
|
||||||
|
|
||||||
modules-right = [
|
modules-right = [
|
||||||
"tray"
|
|
||||||
"temperature"
|
"temperature"
|
||||||
"temperature#gpu"
|
"temperature#gpu"
|
||||||
"keyboard-state#capslock"
|
"keyboard-state#capslock"
|
||||||
@@ -112,6 +111,8 @@ in
|
|||||||
background: ${theme.polarNight.nord3};
|
background: ${theme.polarNight.nord3};
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
windowOffset = 75;
|
||||||
};
|
};
|
||||||
wlogout.enable = true;
|
wlogout.enable = true;
|
||||||
wofi.enable = true;
|
wofi.enable = true;
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ with lib;
|
|||||||
};
|
};
|
||||||
suspendTimer = mkOption {
|
suspendTimer = mkOption {
|
||||||
type = with types; int;
|
type = with types; int;
|
||||||
default = 1500;
|
default = 1800;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -67,6 +67,8 @@ in
|
|||||||
xorg.xhost
|
xorg.xhost
|
||||||
xsettingsd
|
xsettingsd
|
||||||
xwayland
|
xwayland
|
||||||
|
|
||||||
|
pkgs.mjallen.pipewire-python
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.hyprlock = {
|
programs.hyprlock = {
|
||||||
enable = true;
|
enable = false;
|
||||||
settings = {
|
settings = {
|
||||||
background = [
|
background = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -61,7 +61,30 @@ in
|
|||||||
|
|
||||||
modules-center = [ "hyprland/window" ];
|
modules-center = [ "hyprland/window" ];
|
||||||
|
|
||||||
modules-right = cfg.modules-right;
|
modules-right = [
|
||||||
|
"tray"
|
||||||
|
"custom/left-end"
|
||||||
|
"temperature"
|
||||||
|
"temperature#gpu"
|
||||||
|
"keyboard-state#capslock"
|
||||||
|
"keyboard-state#numlock"
|
||||||
|
"wireplumber#sink"
|
||||||
|
"bluetooth"
|
||||||
|
"network"
|
||||||
|
"idle_inhibitor"
|
||||||
|
"custom/right-end"
|
||||||
|
"custom/left-end"
|
||||||
|
"clock"
|
||||||
|
"battery"
|
||||||
|
"custom/weather"
|
||||||
|
"custom/right-end"
|
||||||
|
];
|
||||||
|
|
||||||
|
# modules-right = [
|
||||||
|
# "tray"
|
||||||
|
# "custom/left-end" ] ++
|
||||||
|
# cfg.modules-right ++
|
||||||
|
# [ "custom/right-end" ];
|
||||||
|
|
||||||
# Module Definitions
|
# Module Definitions
|
||||||
# Left
|
# Left
|
||||||
@@ -290,6 +313,16 @@ in
|
|||||||
return-type = "json";
|
return-type = "json";
|
||||||
markup = "pango";
|
markup = "pango";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"custom/left-end" = {
|
||||||
|
format = " ";
|
||||||
|
tooltip = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
"custom/right-end" = {
|
||||||
|
format = " ";
|
||||||
|
tooltip = false;
|
||||||
|
};
|
||||||
} // cfg.extraModules;
|
} // cfg.extraModules;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -373,7 +406,7 @@ in
|
|||||||
${defaultBorderRadius}
|
${defaultBorderRadius}
|
||||||
${defaultCenterOptions}
|
${defaultCenterOptions}
|
||||||
margin-left: 4rem;
|
margin-left: 4rem;
|
||||||
margin-right: 4rem;
|
margin-right: ${toString cfg.windowOffset}rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* make window module transparent when no windows present */
|
/* make window module transparent when no windows present */
|
||||||
@@ -529,6 +562,18 @@ in
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ------------- */
|
/* ------------- */
|
||||||
|
|
||||||
|
#custom-left-end {
|
||||||
|
background-color: ${nord.polarNight.nord0};
|
||||||
|
${defaultOpacity}
|
||||||
|
${borderLeft}
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-right-end {
|
||||||
|
background-color: ${nord.polarNight.nord0};
|
||||||
|
${defaultOpacity}
|
||||||
|
${borderRight}
|
||||||
|
}
|
||||||
''
|
''
|
||||||
+ cfg.extraModulesStyle or '''';
|
+ cfg.extraModulesStyle or '''';
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -29,6 +29,11 @@ with lib;
|
|||||||
default = "";
|
default = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
windowOffset = mkOption {
|
||||||
|
type = types.int;
|
||||||
|
default = 4;
|
||||||
|
};
|
||||||
|
|
||||||
# Waybar modules config
|
# Waybar modules config
|
||||||
# modules = mkOption {
|
# modules = mkOption {
|
||||||
# type = types.submodule {
|
# type = types.submodule {
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
buildHomeAssistantComponent rec {
|
buildHomeAssistantComponent rec {
|
||||||
owner = "gcobb321";
|
owner = "gcobb321";
|
||||||
domain = "icloud3";
|
domain = "icloud3";
|
||||||
version = "3.2.2.3";
|
version = "v3.2.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = owner;
|
owner = owner;
|
||||||
repo = "icloud3";
|
repo = "icloud3";
|
||||||
rev = "v.${version}";
|
rev = "v.${version}";
|
||||||
hash = "sha256-OjXioS73jE/U2YeKYf84QnStdQj3Seid4hJ2TH6z13M=";
|
hash = "sha256-1yygw2k5r2cqh0df6njwjb5lp2nd9cgh684pkjqlzzsbx7jzc8a7";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
|
|||||||
17
packages/pipewire-python/default.nix
Normal file
17
packages/pipewire-python/default.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{ python3Packages, fetchFromGitHub, ... }:
|
||||||
|
python3Packages.buildPythonPackage rec {
|
||||||
|
pname = "pipewire-python";
|
||||||
|
version = "0.2.3";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "pablodz";
|
||||||
|
repo = "pipewire_python";
|
||||||
|
rev = "master";
|
||||||
|
sha256 = "sha256-EmwEZeKFFEqLkVnBKmB1HDVPk0xAqG6Ztv7+gpl0B1Y=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = with python3Packages; [ flit-core ];
|
||||||
|
nativeBuildInputs = with python3Packages; [ build wheel ];
|
||||||
|
doCheck = false; # no tests in the PyPI tarball
|
||||||
|
}
|
||||||
@@ -54,7 +54,6 @@ in
|
|||||||
layer = "top";
|
layer = "top";
|
||||||
|
|
||||||
modules-right = [
|
modules-right = [
|
||||||
"tray"
|
|
||||||
"temperature"
|
"temperature"
|
||||||
"temperature#gpu"
|
"temperature#gpu"
|
||||||
"keyboard-state#capslock"
|
"keyboard-state#capslock"
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ in
|
|||||||
layer = "bottom";
|
layer = "bottom";
|
||||||
|
|
||||||
modules-right = [
|
modules-right = [
|
||||||
"tray"
|
|
||||||
"custom/lights"
|
"custom/lights"
|
||||||
"temperature"
|
"temperature"
|
||||||
"temperature#gpu"
|
"temperature#gpu"
|
||||||
|
|||||||
Reference in New Issue
Block a user