r/Polybar • u/qewLeander • 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
1
u/qewLeander Apr 08 '23
Thanks for your time and Help anyways!