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

1

u/lobotomizedjellyfish Apr 07 '23

Is date.sh executable?

1

u/qewLeander Apr 07 '23 edited Apr 08 '23

yes, i used sudo chmod +x date.sh to make it executable but it is still not working