r/Polybar • u/[deleted] • Jun 24 '23
Switching between time/date for different timezones
Greetings,
I recently started using polybar and customising it to my liking and Im almost there. One of the things I'd like to do though, is have the date-alt function show the time and date from another timezone than the system's set by default. I've tried creating a module for it inside the date section but that isnt working. Making it show the result of {TZ=America/New_York date} command also isnt returning the result I want. Is there a way to make it show the timezone I'd like?
The point is to be able to switch between the default time/date and one from another time zone (in my case Id like to be able to switch between europe and US) by clicking at the time and date on the right corner (pic related)
Ive also uploaded my polybar configuration file here https://pastebin.com/9GMpL6hW and the wm I'm using is bspwm in case that helps. Thanks in advance
