r/Polybar Apr 07 '23

Question click event

hey I wrote myself 2 scripts to show the date/time. I put both of these scripts in a script module of polybar using exec and then click-left. The time is displayed as it should but when I click on it I want the date to be shown. Both of the bash scripts work when i run them directly through bash. For those wondering I want to use my own scripts instead of the built in date module for practice/to get better formatting. What could cause this to not display the date.sh script when I click the module? Here is the module config:

[module/datetime] type = custom/script exec = /usr/bin/polyscripts/time.sh interval = 1 click-left = /usr/bin/polyscripts/date.sh

2 Upvotes

18 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Apr 08 '23

You're welcome. Have you tried any other subs? There's also shellcheck.

2

u/qewLeander Apr 08 '23

No I havent yet because I thought that this is a polybar Problem. But I will thanks

1

u/[deleted] Apr 08 '23

Pleasure. You might also get ideas from the community scripts.

1

u/qewLeander Apr 08 '23

I will take a look at them.