1
0
mirror of https://gitlab.com/linuxstuff/dotfiles.git synced 2026-06-19 04:06:00 +02:00

added better cpu and nvidia-dkms (nvidia-smi) stats

This commit is contained in:
h45h74x
2020-05-19 23:23:53 +02:00
parent 2fe7befc1e
commit ffea56940c
2 changed files with 16 additions and 2 deletions
+12 -2
View File
@@ -15,7 +15,7 @@ foreground-alt = #555
[bar/main]
modules-left = disk update ovpn nvpn eth
modules-center = i3
modules-right = cpu nvgpu memory date
modules-right = sensors_cpu nvgpu memory date
monitor = ${env:MONITOR:DP-0}
width = 100%
@@ -196,9 +196,19 @@ interval = 2
format = gpu: <label>
label-maxlen=15
label-ellipsis=true
exec = "echo $(nvidia-settings -q GPUUtilization | awk -F'=' '{print $3}' | awk '{print $1}' | sed 's/\,/%/g')"
;exec = "echo $(nvidia-settings -q GPUUtilization | awk -F'=' '{print $3}' | awk '{print $1}' | sed 's/\,/%/g')"
exec = "echo $((nvidia-smi -q | grep "Gpu" | awk -F':' '{print $2}' | tr -d ' '; echo ", "; nvidia-smi -q | grep "GPU Current Temp" | awk -F':' '{print $2}' | tr -d ' C' ; echo '°') | cat | tr -d '\n')"
click-left = "setsid alacritty -e sh -c nvtop"
[module/sensors_cpu]
type = custom/script
interval = 2
format = cpu: <label>
label-maxlen=15
label-ellipsis=true
exec = "echo $((top -bn1 | grep 'Cpu(s)' | sed 's/.*, *\([0-9.]*\)%* id.*/\1/' | awk -F '.' '{print 100 - $1}' ; echo '%, ' ; sensors | grep "CPUTIN" | awk -F' ' '{print $2}' | awk -F'.' '{print $1}' | tr -d '+'; echo '°') | tr -d '\n')"
click-left = "setsid alacritty -e sh -c htop"
[module/cpu]
type = internal/cpu
interval = 2
+4
View File
@@ -51,6 +51,10 @@ alias ap="sudo -b create_ap-gui"
alias clock="setsid urxvt -hold -e zsh -e ~/scripts/clock.sh"
alias clockx="setsid urxvt -hold -e zsh -e ~/scripts/clock.sh && exit"
# steam
## start steam without access to hidraw so that the nintendo switch pro controller can be used
alias steam-ns="screen -d -m firejail --noprofile --blacklist=/sys/class/hidraw/ steam"
# fun stuff
alias pipes="pipes -r 50000"
alias worms="pipes -p 10 -r 50 -R"