erikw / tmux-powerline

⚡️ A tmux plugin giving you a hackable status bar consisting of dynamic & beautiful looking powerline segments, written purely in bash.
BSD 3-Clause "New" or "Revised" License
3.41k stars 513 forks source link

add segment for gcalcli #338

Closed Drew-Daniels closed 11 months ago

Drew-Daniels commented 11 months ago

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 your tmux status line:

image

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:

image

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)

image

TMUX_POWERLINE_SEG_GCALCLI_MILITARY_TIME == 0

image

Drew-Daniels commented 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

erikw commented 11 months ago

Thank you!