Update conky configs for power efficiency

This commit is contained in:
2022-01-11 19:57:21 +02:00
parent cca52abf6f
commit d0bcdc1c76
3 changed files with 26 additions and 13 deletions

View File

@@ -54,8 +54,8 @@ ${offset 300} └ UPTIME < $uptime >
$alignr ${offset -240} < wlp4s0:${if_empty ${exec iwgetid}} Offline$else ${exec iwgetid | sed 's/wlp4s0 ESSID://g'} - ${exec ifconfig wlp4s0 | grep "inet " | awk '{print $2}'}$endif > ┐
$alignr ${offset -120} < eno1:${if_empty ${exec ifconfig eno1 | grep "inet " | awk '{print $2}'}} Offline$else ${exec ifconfig wlp4s0 | grep "inet " | awk '{print $2}'}$endif > ┴────────────
$alignr ${offset -240} < wlp4s0: ${wireless_essid wlp4s0} > ┐
$alignr ${offset -120} < eno1: ${addr eno1} > ┴────────────
${offset 450} MEM < $mem/$memmax - ${lua_parse format %2.0f $memperc}% ${membar 8,150} > ┬───────────────
@@ -64,9 +64,9 @@ ${offset 450} SWAP < $swap/$swapmax - ${lua_parse format %2.0f $swapperc}% ${swa
${offset 610} CPU TEMP < ${exec sensors k10temp-pci-00c3 | grep Tctl | cut -c15-22} > ┬────────────────────
${offset 610} iGPU TEMP < ${exec sensors amdgpu-pci-0500 | grep edge | cut -c15-22} > ┤
${offset 610} dGPU TEMP < Offline > ┘
${offset 610} CPU TEMP < +${lua_parse format %2.1f ${if_existing /home/nick/.config/status/gpu/amd}${hwmon 4 temp 1}$else${hwmon 3 temp 1}$endif}°C > ┬────────────────────
${offset 610} iGPU TEMP < ${if_existing /home/nick/.config/status/gpu/amd}+${lua_parse format %2.1f ${hwmon 3 temp 1}}°C$else Offline$endif} > ┤
${offset 610} dGPU TEMP <${if_existing /home/nick/.config/status/gpu/nvidia} +${nvidia temp}.0°C$else Offline$endif} > ┘
@@ -77,11 +77,11 @@ ${offset 610} dGPU TEMP < Offline > ┘
${offset 410} ┌────────────────── AUDIO ─────────────────────
${offset 410} ├ VOLUME < ${exec pamixer --get-volume}% >
${offset 410} ├ STATUS < ${exec playerctl status} >
${offset 410} ├ TITLE < ${exec playerctl metadata title | sed 's/\(.\{35\}\).*/\1.../'} >
${offset 410} ├ ARTIST < ${exec playerctl metadata artist | sed 's/\(.\{35\}\).*/\1.../'} >
${offset 410} └ ALBUM < ${exec playerctl metadata album | sed 's/\(.\{35\}\).*/\1.../'} >
${offset 410} ├ VOLUME < ${execi 15 pamixer --get-volume}% >
${offset 410} ├ STATUS < ${execi 15 playerctl status} >
${offset 410} ├ TITLE < ${execi 15 playerctl metadata title | sed 's/\(.\{35\}\).*/\1.../'} >
${offset 410} ├ ARTIST < ${execi 15 playerctl metadata artist | sed 's/\(.\{35\}\).*/\1.../'} >
${offset 410} └ ALBUM < ${execi 15 playerctl metadata album | sed 's/\(.\{35\}\).*/\1.../'} >

View File

@@ -48,14 +48,14 @@ ${offset 1640}──────────────────────
${offset 1520}─────────────── CPU < ${exec cat /proc/cpuinfo | grep "model name" -m 1 | sed 's/model name\t: //g'} > ─┐
${offset 1520}─────────────── CPU < AMD Ryzen 7 5800H with Radeon Graphics > ─┐
${offset 1680} USAGE < ${lua_parse format %2.0f $cpu}% ${cpubar 8,150} > ─┤
${offset 1680} FREQ < $freq MHz > ─┘
${offset 1560}────────────── GPU < ${exec lspci | grep VGA | sed 's/.*VGA compatible controller: //g' | tail -1} >
${offset 1560}────────────── GPU <${if_existing /home/nick/.config/status/gpu/amd} Advanced Micro Devices, Inc. [AMD/ATI] Cezanne (rev c5) $else NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] (rev a1) $endif}>
${offset 1440} ────────────── STORAGE ┬ < / ${fs_used /}/${fs_size /} ${fs_bar 8,150 /} >

View File

@@ -1 +1,14 @@
[ "$XDG_CURRENT_DESKTOP" = "KDE" ] || [ "$XDG_CURRENT_DESKTOP" = "GNOME" ] || export QT_QPA_PLATFORMTHEME="gtk2"
[ "$XDG_CURRENT_DESKTOP" = "KDE" ] || [ "$XDG_CURRENT_DESKTOP" = "GNOME" ]
export QT_QPA_PLATFORMTHEME="qt5ct"
export QT_PLATFORMTHEME="qt5ct"
export QT_PLATFORM_PLUGIN="qt5ct"
rm /home/nick/.config/status/gpu/*
if lspci | grep VGA | sed 's/.*VGA compatible controller: //g' | tail -1 | grep -q "Advanced Micro Devices";
then
touch /home/nick/.config/status/gpu/amd
else
touch /home/nick/.config/status/gpu/nvidia
fi