Change polybar configs and add GPU module
This commit is contained in:
parent
c8de321829
commit
dc83c02293
@ -159,8 +159,8 @@ font-2 = "xos4 Terminus:size=12;1"
|
||||
;cpu_bar memory_bar filesystem_bar mpd_bar
|
||||
;volume brightness battery_bar
|
||||
|
||||
modules-left = mpd
|
||||
modules-center = filesystem cpu memory temperature updates network
|
||||
modules-left = mpd filesystem
|
||||
modules-center = cpu memory nvidia temperature updates network
|
||||
modules-right = volume brightness date
|
||||
|
||||
; The separator will be inserted between the output of each module
|
||||
|
@ -382,7 +382,7 @@ interval = 0.5
|
||||
; <ramp-load>
|
||||
; <ramp-coreload>
|
||||
;;format = <label> <ramp-coreload>
|
||||
format = <label> <ramp-load>
|
||||
format = <label>
|
||||
format-prefix =
|
||||
|
||||
; Available tokens:
|
||||
|
3
.config/polybar/scripts/system-nvidia-smi.sh
Executable file
3
.config/polybar/scripts/system-nvidia-smi.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits | awk '{ print ""$1"%"}'
|
@ -280,6 +280,17 @@ label-open-foreground = ${color.ac}
|
||||
label-close-foreground = ${color.ac}
|
||||
label-separator-foreground = ${color.ac}
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
|
||||
[module/nvidia]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/scripts/system-nvidia-smi.sh
|
||||
|
||||
; Seconds to sleep between updates
|
||||
; Default: 1
|
||||
interval = 0.5
|
||||
format-prefix =
|
||||
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
;; __________ ______
|
||||
;; / ____/ __ \/ ____/
|
||||
|
Loading…
Reference in New Issue
Block a user