Closed Drew-Daniels closed 11 months ago
Great idea, I’ve used this tool in the past.
Thank you for your (first) contribution! Some small updates needed, then we can get this merged:)
Sure thing! Thanks for the great feedback. Just pushed up some updates - let me know if there's anything else I need to update
Thank you!
I've been using the gcalcli tool since yesterday, which allows you to perform basic Google Calendar actions from your command line, and they had a recommendation on how you could use the output from running
gcalcli agenda | head -2 | tail -1
to print your next Google Calendar event on yourtmux
status line:I thought this was pretty cool, and hacked something together to display the output from this command as a
tmux-powerline
segment. The main updates I've made are:TMUX_POWERLINE_SEG_GCALCLI_MILITARY_TIME
option so users can opt out of using military time.--no-military-time
option will be provided togcalcli
--no-military-time
option will not be provided togcalcli
gcalcli agenda
, which usually looks like this:This would be my first open source contribution so if there's anything I've missed, please let me know! But thought other people might get some use out of this.
Here's what it looks like without any fancy text/background colors:
TMUX_POWERLINE_SEG_GCALCLI_MILITARY_TIME == 1
(Default)TMUX_POWERLINE_SEG_GCALCLI_MILITARY_TIME == 0