Compare commits

...

3 commits

5 changed files with 21 additions and 48 deletions

View file

@ -20,12 +20,6 @@
};
};
# SOURCE: https://github.com/LilleAila/nix-cursors
nix-cursors = {
url = "github:LilleAila/nix-cursors";
inputs.nixpkgs.follows = "nixpkgs";
};
# SOURCE: https://github.com/danth/stylix
stylix = {
url = "github:danth/stylix/release-24.05";

View file

@ -50,6 +50,7 @@ in
];
script = ''
old=0
oldtemp=0
smooth=0
while true; do
temp=$(cat /sys/devices/pci0000\:00/0000\:00\:18.3/hwmon/*/temp1_input)
@ -61,8 +62,8 @@ in
then value=128
elif [ $temp -gt 60000 ]
then value=92
# elif [ $temp -gt 50000 ]
# then value=69
elif [ $temp -gt 55000 ]
then value=69
elif [ $temp -gt 45000 ]
then value=46
elif [ $temp -gt 40000 ]
@ -71,11 +72,14 @@ in
fi
if [[ $old != $value ]]; then
# 30 = 60s smooth.
# 30 = 60s smooth. -5 degrees smooth.
if [[ $value -lt $old ]] && [[ $smooth -lt 30 ]]; then
smooth=$((smooth+1))
if [[ $temp -lt $((oldtemp - 5000)) ]]; then
smooth=$((smooth+1))
fi
else
old=$value
oldtemp=$temp
smooth=0
wm2fc $value
fi

View file

@ -74,27 +74,9 @@ in
};
cursor = {
package = mkPkgOption (
inputs.nix-cursors.packages.${pkgs.system}.google-cursor.override {
accent_color = "#${cfg.color.fg.light}";
background_color = "#${cfg.color.fg.light}";
outline_color = "#${cfg.color.border}";
}
);
name = mkStrOption "GoogleDot-Custom";
size = mkIntOption 22;
# package = mkPkgOption (inputs.nix-cursors.packages.${pkgs.system}.fuchsia-cursor.override {
# accent_color = "#${cfg.color.accent}";
# background_color = "#${cfg.color.fg.light}";
# outline_color = "#${cfg.color.border}";
# });
# name = mkStrOption "Fuchsia-Custom";
# size = mkIntOption 16;
# name = mkStrOption "phinger-cursors-light";
# package = mkPkgOption pkgs.phinger-cursors;
# size = mkIntOption 24;
name = mkStrOption "phinger-cursors-light";
package = mkPkgOption pkgs.phinger-cursors;
size = mkIntOption 24;
};
font = {

View file

@ -137,15 +137,8 @@
steam # Gaming platform.
vkd3d # Directx to Vulkan.
wine64 # Run Windows software on Linux.
(steam.override {
extraLibraries =
_: with pkgs; [
(callPackage ./openssl100 { })
curlWithGnuTls
];
}).run
# (import ./steamrun args).pkg # Steam env to run native games.
(import ./steamrun args).pkg # Steam env to run native games.
];
creative = with pkgs; [

View file

@ -1,11 +1,11 @@
{ __findFile, pkgs, ... }:
{
__findFile,
inputs,
pkgs,
...
}:
{
pkg = pkgs.callPackage "${inputs.nixpkgs}/pkgs/by-name/st/steam/package.nix" {
extraLibraries = pkgs: [ (pkgs.callPackage <package/openssl100> { }) ];
};
pkg =
with pkgs;
(steam.override {
extraLibraries = _: [
(callPackage <package/openssl100> { })
curlWithGnuTls
];
}).run;
}