Change polybar configs and add GPU module

This commit is contained in:
Tanguy Herbron 2020-07-08 16:28:48 +02:00
parent c8de321829
commit dc83c02293
4 changed files with 17 additions and 3 deletions

View File

@ -159,8 +159,8 @@ font-2 = "xos4 Terminus:size=12;1"
;cpu_bar memory_bar filesystem_bar mpd_bar ;cpu_bar memory_bar filesystem_bar mpd_bar
;volume brightness battery_bar ;volume brightness battery_bar
modules-left = mpd modules-left = mpd filesystem
modules-center = filesystem cpu memory temperature updates network modules-center = cpu memory nvidia temperature updates network
modules-right = volume brightness date modules-right = volume brightness date
; The separator will be inserted between the output of each module ; The separator will be inserted between the output of each module

View File

@ -382,7 +382,7 @@ interval = 0.5
; <ramp-load> ; <ramp-load>
; <ramp-coreload> ; <ramp-coreload>
;;format = <label> <ramp-coreload> ;;format = <label> <ramp-coreload>
format = <label> <ramp-load> format = <label>
format-prefix = format-prefix =
; Available tokens: ; Available tokens:

View File

@ -0,0 +1,3 @@
#!/bin/sh
nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits | awk '{ print ""$1"%"}'

View File

@ -280,6 +280,17 @@ label-open-foreground = ${color.ac}
label-close-foreground = ${color.ac} label-close-foreground = ${color.ac}
label-separator-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 =
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
;; __________ ______ ;; __________ ______
;; / ____/ __ \/ ____/ ;; / ____/ __ \/ ____/