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"
|
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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue