Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

want to detect battery for conky

Help for Current Versions of MX
User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 8659
Joined: Wed Jul 12, 2006 2:10 am

Re: want to detect battery for conky

#31

Post by Eadwine Rose » Wed Jan 16, 2019 8:17 am

Something like this:


${exec sensors | grep 'CPU FAN'| cut -b 20-27}

or

${exec nvidia-smi -q -d MEMORY | grep Used | cut -c39-45}


The cut bit displays what is in those positions. If the positions on another machine are different than this cut location will not work out.
MX-18.3_x64 May 26 2019 * 4.19.0-5-amd64 ext4 Xfce 4.12.3 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 390.116 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy5030

User avatar
male
Forum Regular
Forum Regular
Posts: 440
Joined: Thu Jan 23, 2014 8:38 am

Re: want to detect battery for conky

#32

Post by male » Wed Jan 16, 2019 9:11 am

Exactly
You hit the nail on the head :happy:

Therefore, the user must always use a terminal to determine what his machine is capable of, and then apply this to the relevant Conky.

Code: Select all

sensors
or exactly

Code: Select all

sensors -u
Male is the capital of the Maldives and its wonderful people.

Post Reply

Return to “MX Help”