task: Update for TaskWarrior 3 + TaskChampion sync
This commit is contained in:
parent
2fb2cdc35d
commit
61718a5ce3
8 changed files with 12 additions and 31 deletions
|
|
@ -11,7 +11,7 @@ OSTYPE="$(uname -s)"
|
||||||
install_dark() {
|
install_dark() {
|
||||||
ln -sf "${DOTFILES}/alacritty/colors-dark.toml" "${DOTFILES}/alacritty/colors.toml"
|
ln -sf "${DOTFILES}/alacritty/colors-dark.toml" "${DOTFILES}/alacritty/colors.toml"
|
||||||
ln -sf "${DOTFILES}/bat/config-dark" "${DOTFILES}/bat/config"
|
ln -sf "${DOTFILES}/bat/config-dark" "${DOTFILES}/bat/config"
|
||||||
ln -sf "${DOTFILES}/task/jdkaplan-dark.theme" "${DOTFILES}/task/color.theme"
|
ln -sf "${DOTFILES}/task/dark.theme" "${DOTFILES}/task/color.theme"
|
||||||
ln -sf "${DOTFILES}/vim/colors/jdkaplan-dark.vim" "${DOTFILES}/vim/colors/jdkaplan.vim"
|
ln -sf "${DOTFILES}/vim/colors/jdkaplan-dark.vim" "${DOTFILES}/vim/colors/jdkaplan.vim"
|
||||||
ln -sf "${DOTFILES}/neovim/colors/jdkaplan-cool.lua" "${DOTFILES}/neovim/colors/jdkaplan-temp.lua"
|
ln -sf "${DOTFILES}/neovim/colors/jdkaplan-cool.lua" "${DOTFILES}/neovim/colors/jdkaplan-temp.lua"
|
||||||
|
|
||||||
|
|
@ -31,7 +31,7 @@ install_dark() {
|
||||||
install_light() {
|
install_light() {
|
||||||
ln -sf "${DOTFILES}/alacritty/colors-light.toml" "${DOTFILES}/alacritty/colors.toml"
|
ln -sf "${DOTFILES}/alacritty/colors-light.toml" "${DOTFILES}/alacritty/colors.toml"
|
||||||
ln -sf "${DOTFILES}/bat/config-light" "${DOTFILES}/bat/config"
|
ln -sf "${DOTFILES}/bat/config-light" "${DOTFILES}/bat/config"
|
||||||
ln -sf "${DOTFILES}/task/jdkaplan-light.theme" "${DOTFILES}/task/color.theme"
|
ln -sf "${DOTFILES}/task/light.theme" "${DOTFILES}/task/color.theme"
|
||||||
ln -sf "${DOTFILES}/vim/colors/jdkaplan-light.vim" "${DOTFILES}/vim/colors/jdkaplan.vim"
|
ln -sf "${DOTFILES}/vim/colors/jdkaplan-light.vim" "${DOTFILES}/vim/colors/jdkaplan.vim"
|
||||||
ln -sf "${DOTFILES}/neovim/colors/jdkaplan-warm.lua" "${DOTFILES}/neovim/colors/jdkaplan-temp.lua"
|
ln -sf "${DOTFILES}/neovim/colors/jdkaplan-warm.lua" "${DOTFILES}/neovim/colors/jdkaplan-temp.lua"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,8 @@
|
||||||
~/.psqlrc: psql/.psqlrc
|
~/.psqlrc: psql/.psqlrc
|
||||||
~/.psqlrc-readonly: psql/.psqlrc-readonly
|
~/.psqlrc-readonly: psql/.psqlrc-readonly
|
||||||
~/.rgignore: etc/rgignore
|
~/.rgignore: etc/rgignore
|
||||||
|
~/.task/hooks: task/hooks/
|
||||||
|
~/.task/color.theme: task/color.theme
|
||||||
~/.tmux.conf: tmux/.tmux.conf
|
~/.tmux.conf: tmux/.tmux.conf
|
||||||
~/.vimrc: vim/.vimrc
|
~/.vimrc: vim/.vimrc
|
||||||
~/.vim: vim/
|
~/.vim: vim/
|
||||||
|
|
|
||||||
6
task/.gitignore
vendored
6
task/.gitignore
vendored
|
|
@ -1,7 +1 @@
|
||||||
# The sync config contains secrets.
|
|
||||||
/sync
|
|
||||||
|
|
||||||
/color.theme
|
/color.theme
|
||||||
|
|
||||||
# This contains state for the task CLI
|
|
||||||
/.taskrc
|
|
||||||
|
|
|
||||||
98
task/dark.theme
Normal file
98
task/dark.theme
Normal file
|
|
@ -0,0 +1,98 @@
|
||||||
|
###############################################################################
|
||||||
|
#
|
||||||
|
# Copyright 2006 - 2021, Tomas Babej, Paul Beckingham, Federico Hernandez.
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included
|
||||||
|
# in all copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
# SOFTWARE.
|
||||||
|
#
|
||||||
|
# https://www.opensource.org/licenses/mit-license.php
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
rule.precedence.color=deleted,completed,active,keyword.,tag.,project.,overdue,scheduled,due.today,due,blocked,blocking,recurring,tagged,uda.
|
||||||
|
|
||||||
|
# General decoration
|
||||||
|
color.label=
|
||||||
|
color.label.sort=
|
||||||
|
color.alternate=on gray2
|
||||||
|
color.header=color3
|
||||||
|
color.footnote=color3
|
||||||
|
color.warning=bold red
|
||||||
|
color.error=white on red
|
||||||
|
color.debug=color4
|
||||||
|
|
||||||
|
# Task state
|
||||||
|
color.completed=
|
||||||
|
color.deleted=
|
||||||
|
color.active=rgb555 on rgb410
|
||||||
|
color.recurring=rgb013
|
||||||
|
color.scheduled=on rgb001
|
||||||
|
color.until=
|
||||||
|
color.blocked=white on color8
|
||||||
|
color.blocking=black on color15
|
||||||
|
|
||||||
|
# Project
|
||||||
|
color.project.none=
|
||||||
|
|
||||||
|
# Priority
|
||||||
|
color.uda.priority.H=color255
|
||||||
|
color.uda.priority.L=color245
|
||||||
|
color.uda.priority.M=color250
|
||||||
|
|
||||||
|
# Tags
|
||||||
|
color.tag.next=rgb440
|
||||||
|
color.tag.none=
|
||||||
|
color.tagged=
|
||||||
|
|
||||||
|
# Due
|
||||||
|
color.due.today=rgb400
|
||||||
|
color.due=color1
|
||||||
|
color.overdue=color9
|
||||||
|
|
||||||
|
# Report: burndown
|
||||||
|
color.burndown.done=on rgb010
|
||||||
|
color.burndown.pending=on color9
|
||||||
|
color.burndown.started=on color11
|
||||||
|
|
||||||
|
# Report: history
|
||||||
|
color.history.add=color0 on rgb500
|
||||||
|
color.history.delete=color0 on rgb550
|
||||||
|
color.history.done=color0 on rgb050
|
||||||
|
|
||||||
|
# Report: summary
|
||||||
|
color.summary.background=white on color0
|
||||||
|
color.summary.bar=black on rgb141
|
||||||
|
|
||||||
|
# Command: calendar
|
||||||
|
color.calendar.due.today=color15 on color1
|
||||||
|
color.calendar.due=color0 on color1
|
||||||
|
color.calendar.holiday=color0 on color11
|
||||||
|
color.calendar.scheduled=
|
||||||
|
color.calendar.overdue=color0 on color9
|
||||||
|
color.calendar.today=color15 on rgb013
|
||||||
|
color.calendar.weekend=on color235
|
||||||
|
color.calendar.weeknumber=rgb013
|
||||||
|
|
||||||
|
# Command: sync
|
||||||
|
color.sync.added=rgb010
|
||||||
|
color.sync.changed=color11
|
||||||
|
color.sync.rejected=color9
|
||||||
|
|
||||||
|
# Command: undo
|
||||||
|
color.undo.after=color2
|
||||||
|
color.undo.before=color1
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
count=0
|
|
||||||
while read -r; do
|
|
||||||
count=$((count + 1))
|
|
||||||
done
|
|
||||||
|
|
||||||
if ((count > 0)); then
|
|
||||||
exec task sync | tee ~/.task/sync_hook.log
|
|
||||||
else
|
|
||||||
echo "No changes to sync"
|
|
||||||
fi
|
|
||||||
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
CURDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
CURDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
TEMPLATE="${CURDIR}/taskrc-template"
|
TEMPLATE="${CURDIR}/taskrc-template"
|
||||||
DESTINATION="${CURDIR}/.taskrc"
|
DESTINATION="${HOME}/.taskrc"
|
||||||
|
|
||||||
[ -f "${DESTINATION}" ] || cp -v "${TEMPLATE}" "${DESTINATION}"
|
[ -f "${DESTINATION}" ] || cp -v "${TEMPLATE}" "${DESTINATION}"
|
||||||
|
|
|
||||||
98
task/light.theme
Normal file
98
task/light.theme
Normal file
|
|
@ -0,0 +1,98 @@
|
||||||
|
###############################################################################
|
||||||
|
#
|
||||||
|
# Copyright 2006 - 2021, Tomas Babej, Paul Beckingham, Federico Hernandez.
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included
|
||||||
|
# in all copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
# SOFTWARE.
|
||||||
|
#
|
||||||
|
# https://www.opensource.org/licenses/mit-license.php
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
rule.precedence.color=deleted,completed,active,keyword.,tag.,project.,overdue,scheduled,due.today,due,blocked,blocking,recurring,tagged,uda.
|
||||||
|
|
||||||
|
# General decoration
|
||||||
|
color.label=
|
||||||
|
color.label.sort=
|
||||||
|
color.alternate=on gray22
|
||||||
|
color.header=color15 on gray8
|
||||||
|
color.footnote=on gray18
|
||||||
|
color.warning=color9
|
||||||
|
color.error=white on red
|
||||||
|
color.debug=rgb025
|
||||||
|
|
||||||
|
# Task state
|
||||||
|
color.completed=
|
||||||
|
color.deleted=
|
||||||
|
color.active=rgb510
|
||||||
|
color.recurring=
|
||||||
|
color.scheduled=on rgb345
|
||||||
|
color.until=
|
||||||
|
color.blocking=rgb300
|
||||||
|
color.blocked=rgb003
|
||||||
|
|
||||||
|
# Project
|
||||||
|
color.project.none=
|
||||||
|
|
||||||
|
# Priority
|
||||||
|
color.uda.priority.H=gray0
|
||||||
|
color.uda.priority.M=gray5
|
||||||
|
color.uda.priority.L=gray10
|
||||||
|
|
||||||
|
# Tags
|
||||||
|
color.tag.next=rgb420
|
||||||
|
color.tag.none=
|
||||||
|
color.tagged=
|
||||||
|
|
||||||
|
# Due
|
||||||
|
color.due=on rgb343
|
||||||
|
color.due.today=on rgb353
|
||||||
|
color.overdue=on rgb544
|
||||||
|
|
||||||
|
# Report: burndown
|
||||||
|
color.burndown.pending=on rgb411
|
||||||
|
color.burndown.started=on rgb550
|
||||||
|
color.burndown.done=on rgb151
|
||||||
|
|
||||||
|
# Report: history
|
||||||
|
color.history.add=color0 on rgb411
|
||||||
|
color.history.done=color0 on rgb151
|
||||||
|
color.history.delete=color0 on rgb550
|
||||||
|
|
||||||
|
# Report: summary
|
||||||
|
color.summary.bar=on rgb141
|
||||||
|
color.summary.background=on gray20
|
||||||
|
|
||||||
|
# Command: calendar
|
||||||
|
color.calendar.due=on rgb343
|
||||||
|
color.calendar.due.today=on rgb353
|
||||||
|
color.calendar.holiday=color0 on rgb530
|
||||||
|
color.calendar.overdue=on rgb533
|
||||||
|
color.calendar.scheduled=
|
||||||
|
color.calendar.today=rgb005
|
||||||
|
color.calendar.weekend=on gray21
|
||||||
|
color.calendar.weeknumber=gray16
|
||||||
|
|
||||||
|
# Command: sync
|
||||||
|
color.sync.added=green
|
||||||
|
color.sync.changed=yellow
|
||||||
|
color.sync.rejected=red
|
||||||
|
|
||||||
|
# Command: undo
|
||||||
|
color.undo.before=yellow
|
||||||
|
color.undo.after=green
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
# [Created by task 2.5.1 11/24/2019 23:09:25]
|
include ~/.task/color.theme
|
||||||
|
|
||||||
include ~/.config/task/sync
|
|
||||||
include ~/.config/task/color.theme
|
|
||||||
|
|
||||||
data.location=~/.task
|
data.location=~/.task
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue