Compare commits
3 commits
a735fe7fa8
...
6618702f15
Author | SHA1 | Date | |
---|---|---|---|
Dmitry Voronin | 6618702f15 | ||
Dmitry Voronin | c8d479d4bb | ||
Dmitry Voronin | 4c17269d1f |
|
@ -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
|
# SOURCE: https://github.com/danth/stylix
|
||||||
stylix = {
|
stylix = {
|
||||||
url = "github:danth/stylix/release-24.05";
|
url = "github:danth/stylix/release-24.05";
|
||||||
|
|
|
@ -50,6 +50,7 @@ in
|
||||||
];
|
];
|
||||||
script = ''
|
script = ''
|
||||||
old=0
|
old=0
|
||||||
|
oldtemp=0
|
||||||
smooth=0
|
smooth=0
|
||||||
while true; do
|
while true; do
|
||||||
temp=$(cat /sys/devices/pci0000\:00/0000\:00\:18.3/hwmon/*/temp1_input)
|
temp=$(cat /sys/devices/pci0000\:00/0000\:00\:18.3/hwmon/*/temp1_input)
|
||||||
|
@ -61,8 +62,8 @@ in
|
||||||
then value=128
|
then value=128
|
||||||
elif [ $temp -gt 60000 ]
|
elif [ $temp -gt 60000 ]
|
||||||
then value=92
|
then value=92
|
||||||
# elif [ $temp -gt 50000 ]
|
elif [ $temp -gt 55000 ]
|
||||||
# then value=69
|
then value=69
|
||||||
elif [ $temp -gt 45000 ]
|
elif [ $temp -gt 45000 ]
|
||||||
then value=46
|
then value=46
|
||||||
elif [ $temp -gt 40000 ]
|
elif [ $temp -gt 40000 ]
|
||||||
|
@ -71,11 +72,14 @@ in
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $old != $value ]]; then
|
if [[ $old != $value ]]; then
|
||||||
# 30 = 60s smooth.
|
# 30 = 60s smooth. -5 degrees smooth.
|
||||||
if [[ $value -lt $old ]] && [[ $smooth -lt 30 ]]; then
|
if [[ $value -lt $old ]] && [[ $smooth -lt 30 ]]; then
|
||||||
smooth=$((smooth+1))
|
if [[ $temp -lt $((oldtemp - 5000)) ]]; then
|
||||||
|
smooth=$((smooth+1))
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
old=$value
|
old=$value
|
||||||
|
oldtemp=$temp
|
||||||
smooth=0
|
smooth=0
|
||||||
wm2fc $value
|
wm2fc $value
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -74,27 +74,9 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
cursor = {
|
cursor = {
|
||||||
package = mkPkgOption (
|
name = mkStrOption "phinger-cursors-light";
|
||||||
inputs.nix-cursors.packages.${pkgs.system}.google-cursor.override {
|
package = mkPkgOption pkgs.phinger-cursors;
|
||||||
accent_color = "#${cfg.color.fg.light}";
|
size = mkIntOption 24;
|
||||||
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;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
font = {
|
font = {
|
||||||
|
|
|
@ -137,15 +137,8 @@
|
||||||
steam # Gaming platform.
|
steam # Gaming platform.
|
||||||
vkd3d # Directx to Vulkan.
|
vkd3d # Directx to Vulkan.
|
||||||
wine64 # Run Windows software on Linux.
|
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; [
|
creative = with pkgs; [
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
|
{ __findFile, pkgs, ... }:
|
||||||
{
|
{
|
||||||
__findFile,
|
pkg =
|
||||||
inputs,
|
with pkgs;
|
||||||
pkgs,
|
(steam.override {
|
||||||
...
|
extraLibraries = _: [
|
||||||
}:
|
(callPackage <package/openssl100> { })
|
||||||
{
|
curlWithGnuTls
|
||||||
pkg = pkgs.callPackage "${inputs.nixpkgs}/pkgs/by-name/st/steam/package.nix" {
|
];
|
||||||
extraLibraries = pkgs: [ (pkgs.callPackage <package/openssl100> { }) ];
|
}).run;
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue