Add intel gpu stats to the bar

This commit is contained in:
Cyryl Płotnicki 2021-05-16 13:06:22 +01:00
parent 09b40acf81
commit fe3693a44a
3 changed files with 13 additions and 1 deletions

View file

@ -26,6 +26,11 @@ block = "memory"
display_type = "memory" display_type = "memory"
format_mem = "{mem_used} /{mem_total}({mem_used_percents})" format_mem = "{mem_used} /{mem_total}({mem_used_percents})"
[[block]]
block = "custom"
command = ''' sudo intel_gpu_top -l | head -n4 | tail -n1 | awk '{print " " $8 "%"}' '''
interval = 5
[[block]] [[block]]
block = "load" block = "load"
interval = 5 interval = 5

View file

@ -5,6 +5,13 @@
]; ];
programs.dconf.enable = true; programs.dconf.enable = true;
security.sudo.extraRules = [
{
users = [ "cyryl" ];
commands = [ { command = "${pkgs.intel-gpu-tools}/bin/intel_gpu_top"; options = [ "NOPASSWD" ]; } ];
}
];
services = { services = {
physlock = { physlock = {
enable = true; enable = true;

View file

@ -5,7 +5,7 @@ in
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
font-awesome-ttf font-awesome-ttf
unstable.i3status-rust intel-gpu-tools
]; ];
xsession.windowManager.i3 = { xsession.windowManager.i3 = {