Skip to content

A clock widget for statusline with sky color at the time

Notifications You must be signed in to change notification settings

mopp/sky-color-clock.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sky-color-clock.vim

This plugin is inspired by zk-phi/sky-color-clock: [Emacs] A clock widget for modeline with sky color at the time and moonphase icon.
Great, thanks to zk-phi !

Examples

For terminal.

terminal vim

For graphical.

gui vim

Feature

  • A clock widget for statusline with sky color at the time.
  • Moonphase emoji

installation

call dein#add('mopp/sky-color-clock.vim')

" set statusline to enable this plugin.
set statusline+=%#SkyColorClockTemp#\ %#SkyColorClock#%{sky_color_clock#statusline()}

" For lightline.vim
let g:lightline = {
            \ 'component': {
            \   'sky_color_clock': "%#SkyColorClock#%{' ' . sky_color_clock#statusline() . ' '}%#SkyColorClockTemp# ",
            \ },
            \ 'component_raw': {
            \   'sky_color_clock': 1,
            \ },
            \ }

" You can preview the datetimes and colors.
call sky_color_clock#preview()

" For only test
let g:sky_color_clock#timestamp_force_override = 1516201200 + 12 * 60 * 60 " 12:00:00

" Configure variables.
let g:sky_color_clock#latitude
let g:sky_color_clock#color_stops
let g:sky_color_clock#datetime_format
let g:sky_color_clock#enable_emoji_icon
let g:sky_color_clock#openweathermap_api_key " or export OPENWEATHERMAP_API_KEY='hogehoge'
let g:sky_color_clock#openweathermap_city_id
let g:sky_color_clock#temperature_color_stops

About

A clock widget for statusline with sky color at the time

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •