mirror of
https://gitlab.com/linuxstuff/dotfiles.git
synced 2026-08-15 12:59:28 +02:00
added better cpu and nvidia-dkms (nvidia-smi) stats
This commit is contained in:
@@ -15,7 +15,7 @@ foreground-alt = #555
|
|||||||
[bar/main]
|
[bar/main]
|
||||||
modules-left = disk update ovpn nvpn eth
|
modules-left = disk update ovpn nvpn eth
|
||||||
modules-center = i3
|
modules-center = i3
|
||||||
modules-right = cpu nvgpu memory date
|
modules-right = sensors_cpu nvgpu memory date
|
||||||
|
|
||||||
monitor = ${env:MONITOR:DP-0}
|
monitor = ${env:MONITOR:DP-0}
|
||||||
width = 100%
|
width = 100%
|
||||||
@@ -196,9 +196,19 @@ interval = 2
|
|||||||
format = gpu: <label>
|
format = gpu: <label>
|
||||||
label-maxlen=15
|
label-maxlen=15
|
||||||
label-ellipsis=true
|
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"
|
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]
|
[module/cpu]
|
||||||
type = internal/cpu
|
type = internal/cpu
|
||||||
interval = 2
|
interval = 2
|
||||||
|
|||||||
@@ -51,6 +51,10 @@ alias ap="sudo -b create_ap-gui"
|
|||||||
alias clock="setsid urxvt -hold -e zsh -e ~/scripts/clock.sh"
|
alias clock="setsid urxvt -hold -e zsh -e ~/scripts/clock.sh"
|
||||||
alias clockx="setsid urxvt -hold -e zsh -e ~/scripts/clock.sh && exit"
|
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
|
# fun stuff
|
||||||
alias pipes="pipes -r 50000"
|
alias pipes="pipes -r 50000"
|
||||||
alias worms="pipes -p 10 -r 50 -R"
|
alias worms="pipes -p 10 -r 50 -R"
|
||||||
|
|||||||
Reference in New Issue
Block a user