Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
visious25 opened this issue Sep 25, 2022 · 6 comments
Labels
enhancement suggests alteration of existing functionality to better support different use cases question issue where reporter seeks information about conky or a problem they encounter while running it

Comments

@visious25
Copy link

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

@rubyFeedback
Copy link

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.

@brndnmtthws brndnmtthws added enhancement suggests alteration of existing functionality to better support different use cases question issue where reporter seeks information about conky or a problem they encounter while running it labels Dec 7, 2022
@brndnmtthws
Copy link
Owner

Conky does not currently support mouse interactions.

@visious25
Copy link
Author

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

@visious25
Copy link
Author

visious25 commented Jan 6, 2023

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}

@Caellian
Copy link
Collaborator

Caellian commented Nov 3, 2023

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
Copy link
Collaborator

Caellian commented Apr 8, 2024

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 Caellian closed this as completed Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement suggests alteration of existing functionality to better support different use cases question issue where reporter seeks information about conky or a problem they encounter while running it
Projects
None yet
Development

No branches or pull requests

4 participants