You are not logged in.

#2321 2025-07-16 15:06:14

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Show us your conky

Exactement.

Chaque ordinateur est “différent”. Mon âge ici indique 0 - 15, où 15
correspond à la "max_brightness".

Peut-être que @S11 le voit ici et je pense qu'il a aussi un "atout dans sa manche".  HlOhIOY.png

-------------------
Exactly.

Every computer is ‘different’. My age here indicates 0 - 15, where 15
corresponds to "max_brightness".

Maybe @S11 sees that here and I think he also has an “ace up his sleeve”.

Offline

#2322 2025-07-16 17:10:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: Show us your conky

@loutch

I made a small script actual_brightness  in HOME that should work in your case:

#!/bin/bash

## max_brightness = 24000

current=$(cat /sys/class/backlight/*/actual_brightness)
percentage=$(echo "scale=1;$current/240 + 0.5" | bc | awk '{print int($1)}')

echo $percentage > $HOME/actual_brightness

Notes *
Don't forget to make the script executable.
Change the paths as you wish.

Open a terminal and run:

bash $HOME/actual_brightness

You will get values from 0 to 100 (full brightness).
Open the file ~/actual_brightness  and check.

Last edited by marens (2025-07-16 17:28:51)


If people would know how little brain is ruling the world, they would die of fear.

Offline

#2323 2025-07-16 18:41:11

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Good evening,

Thanks guys for your help, it works very well but I had to modify it a little.

The actual_brightness file is created correctly but I couldn't figure out how to write the result in the execbar.

So modify your script marens.

#!/bin/bash

## max_brightness = 24000

current=$(cat /sys/class/backlight/*/actual_brightness)
percentage=$(echo "scale=1;$current/240 + 0.5" | bc | awk '{print int($1)}')

echo $percentage > $HOME/actual_brightness

with this

#!/bin/bash

## max_brightness = 24000

current=$(cat /sys/class/backlight/*/actual_brightness)
percentage=$(echo "scale=1;$current/240 + 0.5" | bc | awk '{print int($1)}')

echo $percentage
echo $percentage > ~/.conky/Tahoe/actual_brightness

in conky made this for the bar

${voffset 10}
${goto 32}${font :size=12}Luminosité ${font} ${alignr 20}${exec sed -n '1p' ~/.conky/Tahoe/actual_brightness}%
${voffset -5}
${goto 40}${execbar 5,320 exec ~/.conky/Tahoe/scripts/luminosite.sh}

This gives the following with several percentages:

sFKEx9g8_t.png

ddCGzpmf_t.png

PQGmGCKA_t.png

NnLEQV4U_t.png

-------------------------------------------------------------------------------------
Vielen Dank für eure Hilfe, es funktioniert sehr gut, aber ich musste es ein wenig anpassen.

Die Datei „actual_brightness” wird korrekt erstellt, aber ich habe nicht herausgefunden, wie ich das Ergebnis in die Execbar schreiben kann.

Also passe dein Skript an, marens.

@+

Last edited by loutch (2025-07-16 18:53:28)


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2324 2025-07-16 20:34:30

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: Show us your conky

löotch wrote:

with this:

#!/bin/bash

## max_brightness = 24000

current=$(cat /sys/class/backlight/*/actual_brightness)
percentage=$(echo "scale=1;$current/240 + 0.5" | bc | awk '{print int($1)}')

echo $percentage
echo $percentage > ~/.conky/Tahoe/actual_brightness

You can delete the line:

echo $percentage

The line echo $percentage  can be used if you want to check (as a control) the percentage when you run a script in the terminal.
The path has been changed to ~/.conky/Tahoe/actual_brightness  as I said above and that's OK.

Anyway, the script works as expected.
I couldn't test it, but the assumption was good.

The screenshots look fine.

P.S.
Try setting the brightness to 12000 and see if you get 50%.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#2325 2025-07-16 20:38:55

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Re

If i delete it conky don't work & i have errors in terminal

conky: reading exec value failed (perhaps it's not the correct format?)
conky: reading exec value failed (perhaps it's not the correct format?)
conky: reading exec value failed (perhaps it's not the correct format?)
ect

@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2326 2025-07-16 20:46:50

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: Show us your conky

^ Then don't change anything.
I don't know what luminosite.sh  looks like.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#2327 2025-07-17 05:44:42

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Hello

luminosite.sh is your script  actual_brightness.sh just renamed  in french.


I think i have it ,for how long, I don't know.

ChV67hsU_t.png


Many tanks

@+

Last edited by loutch (2025-07-17 13:33:51)


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2328 2025-07-17 14:10:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: Show us your conky

^ OK.

It seems that execbar  requires the line 'echo $percentage'.
This works here:

${color 0098FF}${execbar 5,320 exec ~/actual_brightness}

execbar.png

@unklar

This should work in your case (if max_brightness = 15):

#!/bin/bash

## max_brightness = 15

current=$(cat /sys/class/backlight/*/actual_brightness)
percentage=$(echo "scale=1;$current*100/15 + 0.5" | bc | awk '{print int($1)}')

echo $percentage
echo $percentage > $HOME/actual_brightness-percent

If people would know how little brain is ruling the world, they would die of fear.

Offline

#2329 2025-07-17 15:26:16

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Show us your conky

marens wrote:

....

@unklar

This should work in your case (if max_brightness = 15):

#!/bin/bash

## max_brightness = 15

current=$(cat /sys/class/backlight/*/actual_brightness)
percentage=$(echo "scale=1;$current*100/15 + 0.5" | bc | awk '{print int($1)}')

echo $percentage
echo $percentage > $HOME/actual_brightness-percent

Of course it works! With your scripting skills, there's no question about it!  wink

Thank you for that and I've saved it to my Conky archive (I don't really need this ad).  smile
20250717-17h13m34s-grim.png   20250717-17h14m00s-grim.png

Offline

#2330 2025-07-17 18:36:41

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: Show us your conky

This might be interesting to Conky fans here.

I wrote something (01/12/2024):

Topic                                                     Views
Show us your conky   by Sector11      792.653
Conky weather+moon   by TBG         1,608.708

Today (17/07/2025):

Topic                                                     Views
Show us your conky   by Sector11      881.558
Conky weather+moon   by TBG         1,738.323

Then:

$ python3 -c 'from datetime import date; print (date(2025,7,17)-date(2024,12,1))'
228 days, 0:00:00

Average:

Topic                                                  Views(Sum)     Views/Day
Show us your conky   by Sector11        88.905            389.93
Conky weather+moon   by TBG           129.615           568.48

BL forums only have about 3,220 members.
This shows that many people come here as guests and there must be a reason for that.
I think we all know WHY (?), but we won't brag even though we should.

We're not bad, right?


If people would know how little brain is ruling the world, they would die of fear.

Offline

#2331 2025-07-19 01:02:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: Show us your conky

@loutch
@unklar

I think I figured out why execbar  didn't work when the line 'echo $percentage'  was removed from the actual_brightness script.
In fact, a slightly different approach is needed.

This works:

${execi 5 bash $HOME/actual_brightness}${color 0098FF}${execbar 5,320 exec sed -n '1p' $HOME/actual_brightness-percent}

brightness.png

I added a script to the beginning of Conky and it runs every 5 seconds.
This way you always get fresh data in the ~/actual_brightness-percent  file and the execbar  now works as expected.  smile


If people would know how little brain is ruling the world, they would die of fear.

Offline

#2332 2025-07-29 04:10:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: Show us your conky

@loutch

Your radiotray-ng conky looks great:
https://forums.bunsenlabs.org/viewtopic … 37#p144737

I also like the new desktop (light blue).

I see you're following the thumbnail rules,  but sometimes a screenshot without them is better.
With postimages.org you can use Hotlink for forums (instead of Thumbnail for forums)  if the image is not too large.

radiotray-ng.png

It looks much better.
I think 436x130px - 44.5 KB  is fine (IMO).

More details here (» Thinking about our forum image size policy?):
https://forums.bunsenlabs.org/viewtopic.php?id=9418


If people would know how little brain is ruling the world, they would die of fear.

Offline

#2333 2025-07-29 06:53:53

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Hello

Oki-doki.

@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#2334 2025-07-30 00:24:13

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,549
Website

Re: Show us your conky

marens wrote:

BL forums only have about 3,220 members.
This shows that many people come here as guests and there must be a reason for that.
I think we all know WHY (?), but we won't brag even though we should.
We're not bad, right?

BunsenLabs forum posts come up quite often in web searches.

...my web searches anyway. smile


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#2335 2025-08-03 09:43:19

close2zero
Member
From: Norway
Registered: 2025-07-14
Posts: 33

Re: Show us your conky

This is my pure and simple conky and conky.conf

0aPSW6V.png

# Config

conky.config = {
    alignment = 'top_right',
    background = true,
    double_buffer = true,
    update_interval = 1.0,
    cpu_avg_samples = 2,
    net_avg_samples = 2,

    own_window = true,
    own_window_type = 'desktop',
    own_window_transparent = false,
    own_window_argb_visual = true,
    own_window_argb_value = 0,  -- 0 = full transparent, 255 = opaque

    minimum_width = 400,
    minimum_height = 400,
    gap_x = 20,
    gap_y = 50,

    draw_shades = false,
    draw_outline = false,
    draw_borders = false,
    draw_graph_borders = true,

    use_xft = true,
    font = 'monospace:size=10',
    xftalpha = 1,

    default_color = 'white',
    default_outline_color = 'white',
};


conky.text = [[
${color cyan}${font}${hr}

${color cyan}User:     ${color white}${exec whoami}
${color cyan}Hostname: ${color white}${nodename}
${color cyan}Uptime:   ${color white}${uptime}

${color cyan}CPU Temp: ${color white}${exec sensors | grep 'CPU:' | cut -d'+' -f2 | cut -c1-5}${color white}°C


${color cyan}CPU Usage:
${color white}Core 1: ${alignr}${cpu cpu1}% ${cpubar cpu1 12,270}
Core 2: ${alignr}${cpu cpu2}% ${cpubar cpu2 12,270}
Core 3: ${alignr}${cpu cpu3}% ${cpubar cpu3 12,270}
Core 4: ${alignr}${cpu cpu4}% ${cpubar cpu4 12,270}

${color cyan}Memory:
${color white}RAM: ${alignr}${memperc}% ${membar 12,270}

${color cyan}Disk Usage:
${color white}Boot: ${alignr}${fs_used_perc /boot}% ${fs_bar 12,270 /boot}
Root: ${alignr}${fs_used_perc /}% ${fs_bar 12,270 /}

${color cyan}CD-ROM:
${color white}${if_mounted /run/media/ole}Mounted\
${else}${if_match "${exec lsblk -n -o FSTYPE /dev/sr0}" != ""}Disc Present\
${else}${if_match "${execi 5 udevadm info --query=property --name=/dev/sr0 | grep -qE 'ID_CDROM_MEDIA=1' && echo 1 || echo 0 | awk '{print $1}'}" == "1"}Disc Present\
${else}No Disc\
${endif}${endif}${endif}

${color cyan}Network: ${color white}Up: ${upspeed wlp1s0}
${upspeedgraph wlp1s0 50,400}
${color cyan}Network: ${color white}Down: ${downspeed wlp1s0}
${downspeedgraph wlp1s0 50,400}
${color cyan}${hr}
]];

Last edited by close2zero (2025-08-03 09:57:46)


while true; do mount /dev/close2zero /mnt/clarity; done

Offline

#2336 2025-08-04 00:16:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: Show us your conky

RadioTrayNG  -  Now Playing
https://forums.bunsenlabs.org/viewtopic … 38#p140138


I don't think anyone uses the oversized album_art.png  image in Conky.
From what I've seen, @unklar and I have a 128x128 px image, and @loutch's is even smaller.

Sometimes you want to see more details if you like a song or album cover.
This is easy if we open ~/.conky/RadioTray_NG/album art.png  with one of preferred applications.
I still use ancient mtPaint 3.40  for simple things:

mtPaint.png

However, if I want to see the latest album cover, I have to refresh the image (Shift + Ctrl + F1).
So, I played with YAD tonight and I think it turned out well.

In the folder ~/.conky/RadioTray_NG  I created an rt-yad file (script):

#!/bin/bash

while true 
 
  do

  yad --picture \
  --posx=80 \
  --posy=-40 \
  --title="RadioTray NG" \
  --size=fit \
  --width=400 --height=400 \
  --filename="$HOME/.conky/RadioTray_NG/album_art.png"
  
done

I made the script executable and ran it from the terminal:

$ bash $HOME/.conky/RadioTray_NG/rt-yad

It looks pretty good:

radiotray-ng.png

I usually keep the YAD window minimized, but when I want to see the latest album cover in detail, I just click on the close button and a refreshed image appears immediately.

The rt-yad script can be stopped where it was started (Terminal: Ctrl + C).

Note *
You can easily set the window position in the script (--posx=80, --posy=-40).

Last edited by marens (2025-08-04 02:16:50)


If people would know how little brain is ruling the world, they would die of fear.

Offline

#2337 2025-08-04 07:06:03

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Show us your conky

VHIrAuEt.png
This is awesome! Thanks!  smile

Offline

#2338 2025-08-04 13:30:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: Show us your conky

^ Thanks @unklar.
...

YAD Guide wrote:

YAD is a fork of the Zenity program ...

https://yad-guide.ingk.se/#_what_is_yad

I didn't know this, but I noticed a lot of similarities.
So I tried an old trick (Zenity) and got a RadioTray-NG icon in the panel and dock (instead of YAD).

Honestly, I didn't believe it because it wasn't in the YAD Guide, but it works.
It is necessary to specify WmClass  at the beginning of the script, and then use it in the YAD (Zenity) window.

This is an improved rt-yad script:

#!/bin/bash

WmClass="Radiotray-NG"

while true 
 
  do

  yad --picture \
  --class="$WmClass" \
  --posx=80 \
  --posy=-40 \
  --title="RadioTray NG" \
  --size=fit \
  --width=400 --height=400 \
  --filename="$HOME/.conky/RadioTray_NG/album_art.png" \
  
  sleep 0.8
  
done

radiotray-ng.png

Enjoy.  smile


If people would know how little brain is ruling the world, they would die of fear.

Offline

#2339 2025-08-09 01:14:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: Show us your conky

RadioTrayNG  -  Now Playing
https://forums.bunsenlabs.org/viewtopic … 38#p140138

After five days of testing, I can say that the rt-yad script works great.
I use it every day.

It's improved a little though.
It makes more sense to have  Refresh   and  Exit   buttons:

rt-yad.png

1) For the latest album art, click the  Refresh  button  or  Close  the window.
2) To terminate the script, click on the Exit button.

This is an improved rt-yad script:

#!/bin/bash


WmClass="Radiotray-NG"

while true 
 
  do

  yad --picture \
  --class="$WmClass" \
  --posx=80 \
  --posy=-40 \
  --title="RadioTray NG" \
  --size=fit \
  --width=400 --height=400 \
  --filename="$HOME/.conky/RadioTray_NG/album_art.png" \
  --button="Refresh" \
  --button="Exit":"/bin/bash -c 'pkill -f $HOME/.conky/RadioTray_NG/rt-yad'" 2>/dev/null \
  
  sleep 0.8
  
done

If people would know how little brain is ruling the world, they would die of fear.

Offline

#2340 2025-08-09 01:26:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: Show us your conky

RadioTrayNG  -  Now Playing
https://forums.bunsenlabs.org/viewtopic … 38#p140138

Although the above script works fine, tonight I decided to see if the album art could update itself.
I played around with it a bit and created the rt-yad2 script:

#!/bin/bash

WmClass="Radiotray-NG"

    yad --picture \
      --class="$WmClass" \
      --posx=80 \
      --posy=-40 \
      --title="RadioTray NG" \
      --size=fit \
      --width=400 --height=400 \
      --filename="$HOME/.conky/RadioTray_NG/album_art.png" \
      --button="Exit":"/bin/bash -c 'pkill -f $HOME/.conky/RadioTray_NG/rt-yad2'" 2>/dev/null & yadpid1=$!
      
    sleep 2
      
    xdotool search --name --sync --onlyvisible "RadioTray NG" | xargs xdotool windowminimize

while sleep 2; do

    album_cover_old=$(cat $HOME/.conky/RadioTray_NG/album_cover)
    
    sleep 10
    
    album_cover_new=$(cat $HOME/.conky/RadioTray_NG/album_cover)
    
    if [[ "$album_cover_new" != $album_cover_old ]]; then
      
      if [[ -n $yadpid1 ]];then
       
         kill "$yadpid1"
         
         yadpid1=""
         
      fi 
    
      if [[ -n $yadpid ]];then
       
         kill "$yadpid"
         
      fi
      
      sleep 0.8   
    
      yad --picture \
        --class="$WmClass" \
        --posx=80 \
        --posy=-40 \
        --title="RadioTray NG" \
        --size=fit \
        --width=400 --height=400 \
        --filename="$HOME/.conky/RadioTray_NG/album_art.png" \
        --button="Exit":"/bin/bash -c 'pkill -f $HOME/.conky/RadioTray_NG/rt-yad2'" 2>/dev/null & yadpid=$!
      
      sleep 2
      
      xdotool search --name --sync --onlyvisible "RadioTray NG" | xargs xdotool windowminimize
          
    fi

done

The result looks pretty good:

rt-yad2.png

Maybe I'm playing around too much, but when the song changes, the latest album art is displayed and the window minimizes after two seconds.

If you want the window to remain on the desktop, just add a "#" before the xdotool commands:

...

# xdotool search ...

...

# xdotool search ...

Of course, now you use the  Exit  button to terminate the script and the  Refresh  button is no longer needed.
If you just close the window, the script will continue to run and you will get the latest album art again when the song changes.  big_smile

Testing is just beginning, but things look encouraging.  smile

Last edited by marens (2025-08-09 02:16:50)


If people would know how little brain is ruling the world, they would die of fear.

Offline

Board footer

Powered by FluxBB