Skip to content

Commit

Permalink
Add new snowblock for Timewarrior
Browse files Browse the repository at this point in the history
Created a new snowblock for Timewarrior (1) including

* the `timewarrior.cfg` configuration (2) files for the `igloo` and
  `archbook` hosts
* a Nord (3) based color theme (4) to be imported in `timewarrior.cfg`

> Content

>> Reports

The default `day` reports should include the month name and week number.

> Configuration

>> Core Plugins

>>> `clean`

* `~`
* `~/.timewarrior`

>>> `link`

* "archbook":
  * `timewarrior.cfg.archbook` => `~/.timewarrior/timewarrior.cfg`
  * `nord.theme` => `~/.timewarrior/nord.theme`
* "igloo":
  * `timewarrior.cfg.igloo` => `~/.timewarrior/timewarrior.cfg`
  * `nord.theme` => `~/.timewarrior/nord.theme`

References:

  (1) https://timewarrior.net
  (2) https://taskwarrior.org/docs/timewarrior/configuration.html
  (3) https://arcticicestudio.github.io/nord
  (4) https://taskwarrior.org/docs/timewarrior/themes.html

Closes GH-109
  • Loading branch information
arcticicestudio committed Apr 7, 2018
1 parent 2e541f5 commit 15688f3
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 0 deletions.
25 changes: 25 additions & 0 deletions snowblocks/timewarrior/nord.theme
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (c) 2016-present Arctic Ice Studio <[email protected]>
# Copyright (c) 2016-present Sven Greb <[email protected]>

# Project: igloo
# Repository: https://github.com/arcticicestudio/igloo
# License: MIT
# References:
# https://taskwarrior.org/docs/timewarrior/themes.html
# timew(1)

define theme:
description = "An arctic, north-bluish clean and elegant Timewarrior theme."
colors:
exclusion = "bold black"
today = "cyan"
holiday = "bold blue on white"
label = "bold white on black"
ids = "bold black on cyan"
debug = "magenta"

# Rotating color palette for tags.
palette:
color01 = "bold black on cyan"
color02 = "bold black on bright cyan"
color03 = "bold black on blue"
28 changes: 28 additions & 0 deletions snowblocks/timewarrior/snowblock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[
{
"clean": [
"~",
"~/.timewarrior"
]
},
{
"link": {
"~/.timewarrior/timewarrior.cfg": {
"create": true,
"force": true,
"hosts": {
"archbook": "timewarrior.cfg.archbook",
"igloo": "timewarrior.cfg.igloo"
}
},
"~/.timewarrior/nord.theme": {
"create": true,
"force": true,
"hosts": {
"archbook": "nord.theme",
"igloo": "nord.theme"
}
}
}
}
]
24 changes: 24 additions & 0 deletions snowblocks/timewarrior/timewarrior.cfg.archbook
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright (c) 2016-present Arctic Ice Studio <[email protected]>
# Copyright (c) 2016-present Sven Greb <[email protected]>

# Project: igloo
# Repository: https://github.com/arcticicestudio/igloo
# License: MIT
# References:
# https://taskwarrior.org/docs/timewarrior
# timew(1)

#+----+
#+ UI +
#+----+
import /home/sgreb/.timewarrior/nord.theme
color = true

#+---------+
#+ Reports +
#+---------+
define reports:
day:
lines = 10
month = true
week = true
24 changes: 24 additions & 0 deletions snowblocks/timewarrior/timewarrior.cfg.igloo
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright (c) 2016-present Arctic Ice Studio <[email protected]>
# Copyright (c) 2016-present Sven Greb <[email protected]>

# Project: igloo
# Repository: https://github.com/arcticicestudio/igloo
# License: MIT
# References:
# https://taskwarrior.org/docs/timewarrior
# timew(1)

#+----+
#+ UI +
#+----+
import /home/arcticicestudio/.timewarrior/nord.theme
color = true

#+---------+
#+ Reports +
#+---------+
define reports:
day:
lines = 10
month = true
week = true

0 comments on commit 15688f3

Please sign in to comment.