added temp in waybar

This commit is contained in:
aethrvmn 2024-08-01 17:34:17 +02:00
parent 765fe0e5b2
commit 553220bcb8
3 changed files with 34 additions and 4 deletions

10
blas.nix Normal file
View file

@ -0,0 +1,10 @@
self: super: {
blas = super.blas.override {
blasProvider = self.openblas;
};
lapack = super.lapack.override {
lapackProvider = self.openblas;
};
}

View file

@ -66,7 +66,16 @@
# Flakes setup # Flakes setup
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs = {
config.allowUnfree = true;
};
virtualisation = {
docker = {
enable = true;
enableOnBoot = true;
};
};
# Garbage collection # Garbage collection
nix.gc = { nix.gc = {
@ -89,6 +98,7 @@
nim nim
nimble nimble
openblas openblas
openblasCompat
playerctl playerctl
poetry poetry
python311Full python311Full

View file

@ -35,6 +35,7 @@
]; ];
modules-right = [ modules-right = [
"temperature"
"network" "network"
"bluetooth" "bluetooth"
"battery" "battery"
@ -47,8 +48,8 @@
warning = 30; warning = 30;
critical = 15; critical = 15;
}; };
format = "{icon} {capacity}%"; format = "{capacity}% {icon}" ;
format-charging = " {capacity}%"; format-charging = "{capacity}% ";
format-icons = [ "" "" "" "" "" ]; format-icons = [ "" "" "" "" "" ];
}; };
@ -120,6 +121,13 @@
on-click-right = "pavucontrol"; on-click-right = "pavucontrol";
}; };
"temperature" = {
format-critical = "{temperatureC}°C ";
format = "{temperatureC}°C {icon}";
format-icons = ["" "" "" ""];
critical-threshold = 90;
};
"tray" = { "tray" = {
icon-size = 18; icon-size = 18;
spacing = 10; spacing = 10;
@ -166,6 +174,7 @@
#cava, #cava,
#clock, #clock,
#pulseaudio, #pulseaudio,
#temperature,
#tray, #tray,
#network, #network,
#custom-media, #custom-media,
@ -190,7 +199,8 @@
} }
#bluetooth, #bluetooth,
#network { #network,
#temperature {
border-radius: 10px; border-radius: 10px;
margin-right: 10px; margin-right: 10px;
padding-left: 10px; padding-left: 10px;