Add intel gpu stats to the bar
This commit is contained in:
parent
09b40acf81
commit
fe3693a44a
3 changed files with 13 additions and 1 deletions
|
@ -26,6 +26,11 @@ block = "memory"
|
|||
display_type = "memory"
|
||||
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 = "load"
|
||||
interval = 5
|
||||
|
|
|
@ -5,6 +5,13 @@
|
|||
];
|
||||
programs.dconf.enable = true;
|
||||
|
||||
security.sudo.extraRules = [
|
||||
{
|
||||
users = [ "cyryl" ];
|
||||
commands = [ { command = "${pkgs.intel-gpu-tools}/bin/intel_gpu_top"; options = [ "NOPASSWD" ]; } ];
|
||||
}
|
||||
];
|
||||
|
||||
services = {
|
||||
physlock = {
|
||||
enable = true;
|
||||
|
|
|
@ -5,7 +5,7 @@ in
|
|||
{
|
||||
home.packages = with pkgs; [
|
||||
font-awesome-ttf
|
||||
unstable.i3status-rust
|
||||
intel-gpu-tools
|
||||
];
|
||||
|
||||
xsession.windowManager.i3 = {
|
||||
|
|
Loading…
Reference in a new issue