conky icon indicating copy to clipboard operation
conky copied to clipboard

audacious add buttons (Play, Pause, Stop, Previous Track and Nex Track) in conky

Open visious25 opened this issue 3 years ago • 5 comments

Hi, is it posibole to setup buttons in conky without using lua scripts?

lua_load ~/.conky/lua/image.lua

template1 ${lua rc_button {btype=3,bname="button1",blx_off=160,bly_off=196,bw_off=20,bh_off=20}} template2 ${lua rc_button {btype=3,bname="button2",blx_off=185,bly_off=196,bw_off=20,bh_off=20}} template3 ${lua rc_button {btype=3,bname="button3",blx_off=210,bly_off=196,bw_off=20,bh_off=20}} template4 ${lua rc_button {btype=3,bname="button4",blx_off=235,bly_off=196,bw_off=20,bh_off=20}} template5 ${lua rc_button {btype=3,bname="button5",blx_off=257,bly_off=196,bw_off=20,bh_off=20}}

I found this guide here: https://forums.bunsenlabs.org/viewtopic.php?id=3158

visious25 avatar Sep 25 '22 12:09 visious25

Buttons work? I did not even know. Perhaps someone could add some explanation to the wiki for conky - relying on external websites is problematic as these can be offline eventually and then that information is lost. StackOverflow has that problem.

rubyFeedback avatar Dec 06 '22 17:12 rubyFeedback

Conky does not currently support mouse interactions.

brndnmtthws avatar Dec 07 '22 16:12 brndnmtthws

What does mean this? It isn't possible to add buttons without using lua scripts.

visious25 avatar Dec 07 '22 17:12 visious25

Hi all, I have one more question for you. Audacious doesn't display all track numbers of all tracks. Test the below command.

Add the $ symbol first to the front of {color6} and {color9}:

{color6}Track Number: {color9}${alignr}${exec audtool --current-song-tuple-data track-number}

visious25 avatar Jan 06 '23 13:01 visious25

Mouse event support has been implemented in the meantime. Though it might have some bugs and quirks. Simple buttons should definitely work though and is preferable (more performant and portable) than relying on externals scripts for same functionality.

Something like widgets would be a good addition, but conky can now handle stuff that was previously handled externally (e.g. ConkyClicky) in a somewhat simpler way.

Caellian avatar Nov 03 '23 14:11 Caellian

Mouse events have been added, most issues that arose from that addition have been fixed. This allows adding buttons to conky. There are still some improvements when it comes to passing these events through on the way.

Wayland support will be added in the future.

Caellian avatar Apr 08 '24 12:04 Caellian