From 59af54403b7f2919b2837378c20f178606f39c9a Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Tue, 11 Jan 2022 19:57:21 +0200 Subject: [PATCH] Update conky configs for power efficiency --- .config/conky/conky_left.conf | 20 ++++++++++---------- .config/conky/conky_right.conf | 4 ++-- .profile | 15 ++++++++++++++- 3 files changed, 26 insertions(+), 13 deletions(-) diff --git a/.config/conky/conky_left.conf b/.config/conky/conky_left.conf index 5a94e56..7899692 100755 --- a/.config/conky/conky_left.conf +++ b/.config/conky/conky_left.conf @@ -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.../'} > diff --git a/.config/conky/conky_right.conf b/.config/conky/conky_right.conf index 1d85dd7..828b734 100755 --- a/.config/conky/conky_right.conf +++ b/.config/conky/conky_right.conf @@ -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 /} > diff --git a/.profile b/.profile index fa84433..3115337 100755 --- a/.profile +++ b/.profile @@ -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 \ No newline at end of file