Compare commits

..

2 commits

Author SHA1 Message Date
Geoffrey Frogeye 5462fa43fa
frobar: Fix temperature for sensor without high values 2024-06-18 04:25:18 +02:00
Geoffrey Frogeye 795ed034f8
cranberry: Use Alt for modifier
Not everything fixed but it's a start
2024-06-18 04:17:35 +02:00
3 changed files with 8 additions and 3 deletions

View file

@ -15,11 +15,17 @@
maxVideoHeight = 1080; maxVideoHeight = 1080;
}; };
# Alt key swallowed the Meta one
home-manager.users.geoffrey = { ... }: {
xsession.windowManager.i3.config.modifier = "Mod1";
};
}; };
imports = [ imports = [
nixos-hardware.nixosModules.common-cpu-amd nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-gpu-amd nixos-hardware.nixosModules.common-gpu-amd
nixos-hardware.nixosModules.common-pc-laptop nixos-hardware.nixosModules.common-pc-laptop
nixos-hardware.nixosModules.common-pc-ssd nixos-hardware.nixosModules.common-pc-ssd
# TODO Fix sound
]; ];
} }

View file

@ -188,7 +188,7 @@ class TemperatureProvider(AlertingSection, PeriodicUpdater):
self.dangerThresold = temp.critical or 100.0 self.dangerThresold = temp.critical or 100.0
self.updateLevel(temp.current) self.updateLevel(temp.current)
self.icon = Section.ramp(temp.current / temp.high, self.RAMP) self.icon = Section.ramp(temp.current / self.warningThresold, self.RAMP)
if self.state >= 1: if self.state >= 1:
return "{:.0f}°C".format(temp.current) return "{:.0f}°C".format(temp.current)
return "" return ""

View file

@ -49,7 +49,7 @@ in
}; };
}; };
xsession.windowManager.i3.config = { xsession.windowManager.i3.config = {
modifier = "Mod4"; modifier = lib.mkDefault "Mod4";
fonts = { fonts = {
names = [ config.stylix.fonts.sansSerif.name ]; names = [ config.stylix.fonts.sansSerif.name ];
}; };
@ -76,7 +76,6 @@ in
button2 = "kill"; button2 = "kill";
# Rofi # Rofi
"${mod}+i" = "exec --no-startup-id ${pkgs.rofimoji}/bin/rofimoji"; "${mod}+i" = "exec --no-startup-id ${pkgs.rofimoji}/bin/rofimoji";
"${mod}+Tab" = "${rofi} -modi window -show window";
# start program launcher # start program launcher
"${mod}+d" = "${rofi} -modi run -show run"; "${mod}+d" = "${rofi} -modi run -show run";
"${mod}+Shift+d" = "${rofi} -modi drun -show drun"; "${mod}+Shift+d" = "${rofi} -modi drun -show drun";