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

Conky Helps and Stuff

User avatar
KoO
Forum Regular
Forum Regular
Posts: 533
Joined: Fri Feb 10, 2017 1:21 am

Re: Conky Helps and Stuff

#341

Post by KoO » Sat Jun 08, 2019 9:02 pm

My New Conky Bars.. Thanks to almighty

[Image
Image

https://ibb.co/FzSTqgW
https://ibb.co/1T9Jvqf
Main : Debian10 (i3) , Liquorix , Intel Xeon E3-1241 v3 , 16gb , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Debian10 antiX17 (i3) , 4.19.170 , i5 , 8gb . BiosMod 1.46

User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 8931
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#342

Post by Eadwine Rose » Sun Jun 09, 2019 4:46 am

Nice!!!
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
asqwerth
Forum Veteran
Forum Veteran
Posts: 4954
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#343

Post by asqwerth » Mon Jun 10, 2019 3:30 am

I like that, KoO
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
KoO
Forum Regular
Forum Regular
Posts: 533
Joined: Fri Feb 10, 2017 1:21 am

Re: Conky Helps and Stuff

#344

Post by KoO » Mon Jun 10, 2019 6:01 am

Ya Thanks glad I found the script had a bit of fun editing it as well nice clean code too.

With the separators removed..

Image

https://ibb.co/v1t76dz
Main : Debian10 (i3) , Liquorix , Intel Xeon E3-1241 v3 , 16gb , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Debian10 antiX17 (i3) , 4.19.170 , i5 , 8gb . BiosMod 1.46

User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 8931
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#345

Post by Eadwine Rose » Mon Jun 10, 2019 6:02 am

Could you share the code? I'm sure many would love to try it :smile:
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
KoO
Forum Regular
Forum Regular
Posts: 533
Joined: Fri Feb 10, 2017 1:21 am

Re: Conky Helps and Stuff

#346

Post by KoO » Mon Jun 10, 2019 7:38 am

I run this with i3 and a start script. If it is renamed to .conkyrc I can not see why it would run as a normal conky > 1.10 I will run it through convert.lua see if It will run on 1.9 .

You can have what ever you want for the separtor by changing below.

"full_text": "~", " | " "=" "" You will need to change the line in each entry of "full_text": "~",

Color = is text color.


Without separator

Code: Select all

    --[[
                               
# Heavily based on Monsieur Erik Dubois config (http://erikdubois.be)
# I only slightly modify this to make it suitable for my setup
# Cheers!
# Addy
# Thanks from KoO to almighty

]]

conky.config = {
    out_to_x = false,
    own_window = false,
    own_window_argb_visual = false,
    out_to_console = true,
    background = false,
    max_text_width = 0,
    update_interval = 4.0,
    total_run_times = 0,
    short_units = true,
    if_up_strictness = "address",
    use_spacer = "left",
    override_utf8_locale = false,
    cpu_avg_samples = 2
}

conky.text = [[
  [
    
    {
      "full_text": "",
      "color": "\#cb6077",
      "background": "\#2f343f",
      "separator":true,
      "separator_block_width": 0
    },
    {
      "full_text": " * ${if_mpd_playing}${mpd_smart 50}  ${mpd_elapsed} / ${mpd_length}${else}${mpd_status}${endif} ",
      "color": "\#2a2a2a",
      "background": "\#993366",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "",
      "color": "\#cb6077",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    { 
      "full_text": " Debian 10B * UT ${uptime_short} ",
      "color": "\#2a2a2a",
      "background": "\#999999",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "",
      "color": "\#cb6077",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": " CPU ${cpu cpu1}%${hwmon 1 temp 1}°/ ${cpu cpu2}%${hwmon 1 temp 2}°/ ${cpu cpu3}%${hwmon 1 temp 3}°/ ${cpu cpu4}%${hwmon 1 temp 4}° ",
      "color": "\#2a2a2a",
      "background": "\#cb6077",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "",
      "color": "\#7bcdb4",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": " MEM ${mem}/${memmax} ",
      "color": "\#2a2a2a",
      "background": "\#7bcdb4",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "",
      "color": "\#a89bb9",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": " GPU ${exec nvidia-settings -q [gpu:0]/GPUCurrentClockFreqs -t} MHz ${exec nvidia-settings -q [thermalsensor:0]/ThermalSensorReading -t}° ",
      "color": "\#2a2a2a",
      "background": "\#99CC00",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "",
      "color": "\#bec55b",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": " SSD ${fs_used} / ${fs_size} SDA:${exec hddtemp /dev/sda -n --unit=C}° SDB:${exec hddtemp /dev/sdb -n --unit=C}° ",
      "color": "\#2a2a2a",
      "background": "\#bec55b",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "",
      "color": "\#a89bb9",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": " NET ${downspeed eno1} ▼  ${upspeed eno1} ▲ ",
      "color": "\#2a2a2a",
      "background": "\#a89bb9",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "",
      "color": "\#a89bb9",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": " FAN ${hwmon 2 fan 1} rpm : ${hwmon 2 fan 2} rpm : ${hwmon 2 fan 3} rpm ",
      "color": "\#2a2a2a",
      "background": "\#CC6600",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "",
      "color": "\#8ab3d5",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "  ${time %a, %d/%m/%y} ",
      "color": "\#2a2a2a",
      "background": "\#8ab3d5",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "",
      "color": "\#e4bc87",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "  ${time %I:%M %p} ",
      "color": "\#2a2a2a",
      "background": "\#e4bc87",
      "separator": true,
      "separator_block_width": 0
    }
  ],
]]



With tilde key as separator

Code: Select all

  --[[
                               
# Heavily based on Monsieur Erik Dubois config (http://erikdubois.be)
# I only slightly modify this to make it suitable for my setup
# Cheers!
# Addy
# Thanks from KoO to almighty

]]

conky.config = {
    out_to_x = false,
    own_window = false,
    own_window_argb_visual = false,
    out_to_console = true,
    background = false,
    max_text_width = 0,
    update_interval = 4.0,
    total_run_times = 0,
    short_units = true,
    if_up_strictness = "address",
    use_spacer = "left",
    override_utf8_locale = false,
    cpu_avg_samples = 2
}

conky.text = [[
  [
    {
      "full_text": "~",
      "color": "\#cb6077",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": " * ${if_mpd_playing}${mpd_smart 50}  ${mpd_elapsed} / ${mpd_length}${else}${mpd_status}${endif} ",
      "color": "\#2a2a2a",
      "background": "\#993366",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "~",
      "color": "\#cb6077",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    { 
      "full_text": " Debian 10B * UT ${uptime_short} ",
      "color": "\#2a2a2a",
      "background": "\#999999",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "~",
      "color": "\#cb6077",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": " CPU ${cpu cpu1}%${hwmon 1 temp 1}°/ ${cpu cpu2}%${hwmon 1 temp 2}°/ ${cpu cpu3}%${hwmon 1 temp 3}°/ ${cpu cpu4}%${hwmon 1 temp 4}° ",
      "color": "\#2a2a2a",
      "background": "\#cb6077",
      "separator": false,
      "separator_block_width": 0
    },
    {
      "full_text": "~",
      "color": "\#7bcdb4",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": " MEM ${mem} / ${memmax} ",
      "color": "\#2a2a2a",
      "background": "\#7bcdb4",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "~",
      "color": "\#a89bb9",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": " GPU ${exec nvidia-settings -q [gpu:0]/GPUCurrentClockFreqs -t} MHz ${exec nvidia-settings -q [thermalsensor:0]/ThermalSensorReading -t}° ",
      "color": "\#2a2a2a",
      "background": "\#99CC00",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "~",
      "color": "\#bec55b",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": " SSD ${fs_used} / ${fs_size} SDA:${exec hddtemp /dev/sda -n --unit=C}° SDB:${exec hddtemp /dev/sdb -n --unit=C}° ",
      "color": "\#2a2a2a",
      "background": "\#bec55b",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "~",
      "color": "\#a89bb9",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": " NET ${downspeed eno1} ▼  ${upspeed eno1} ▲ ",
      "color": "\#2a2a2a",
      "background": "\#a89bb9",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "~",
      "color": "\#a89bb9",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": " FAN ${hwmon 2 fan 1} rpm : ${hwmon 2 fan 2} rpm : ${hwmon 2 fan 3} rpm ",
      "color": "\#2a2a2a",
      "background": "\#CC6600",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "~",
      "color": "\#8ab3d5",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "  ${time %a, %d/%m/%y} ",
      "color": "\#2a2a2a",
      "background": "\#8ab3d5",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "~",
      "color": "\#e4bc87",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "  ${time %I:%M %p} ",
      "color": "\#2a2a2a",
      "background": "\#e4bc87",
      "separator": true,
      "separator_block_width": 0
    },
    {
      "full_text": "~",
      "color": "\#e4bc87",
      "background": "\#2f343f",
      "separator": true,
      "separator_block_width": 0
    }
  ],
]]

For i3
conkybar.sh

Code: Select all

 #!/bin/sh

# Send the header so that i3bar knows we want to use JSON:
echo '{"version":1}'

# Begin the endless array.
echo '['

# We send an empty first array of blocks to make the loop simpler:
echo '[],'

# Now send blocks with information forever:
exec conky -c ~/.config/i3/conkybar
 
mpd script for ncmpcpp
"full_text": " * ${if_mpd_playing}${mpd_smart 50} ${mpd_elapsed} / ${mpd_length}${else}${mpd_status}${endif} ",

mpd-notify.sh

Code: Select all

#!/bin/bash
# Get the song that is currently played and store it to a variable
oldsong=$(mpc current)
# Stays on loop while the script is active
while "true"; do
	# Check if the current song is equal to the one that was playing before (oldsong)
	if [[ "$(mpc current)" != "$oldsong" ]]; then
		# If not equal, assign the new song to the variable to be checking again correctly
		oldsong=$(mpc current)
		# And send the notification
		notify-send "Now playing" "$(mpc current)"
	fi
	# Change "1" to any value in seconds you want
	sleep 1
done
 
Main : Debian10 (i3) , Liquorix , Intel Xeon E3-1241 v3 , 16gb , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Debian10 antiX17 (i3) , 4.19.170 , i5 , 8gb . BiosMod 1.46

Post Reply

Return to “Software / Configuration”