Enable tasks and notes in work environment

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-06-17 21:29:40 +02:00
parent 5f170c2db6
commit 0fb408fc24
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
6 changed files with 25 additions and 27 deletions

View file

@ -110,6 +110,7 @@ ADD_GROUPS=(
SYSTEMD_SERVICES=(
"acpid"
"cronie"
"docker"
"NetworkManager"
"org.cups.cupsd"
"suspend"
@ -243,7 +244,6 @@ else
done
fi
if [ "${IS_WORK}" = "0" ]; then
print_section "Setup notes directory"
if [ ! -d "${HOME}/notes" ]; then
git clone gl:notes "${HOME}/notes"
@ -259,7 +259,6 @@ if [ "${IS_WORK}" = "0" ]; then
else
print_log "Tasks directory allready exists"
fi
fi
###############################################################################

View file

@ -54,13 +54,7 @@ export GEM_SPEC_CACHE="${XDG_CACHE_HOME}/gem/specs"
mkdir -p "${XDG_DATA_HOME}/wine/prefixes"
export WINEPREFIX="${XDG_DATA_HOME}/wine/prefixes/default"
export SQLITE_HISTORY="${XDG_DATA_HOME}/sqlite_history"
if [ "${IS_WORK}" = "1" ]; then
export TASKDATA="${HOME}/.local/share/tasks"
else
export TASKDATA="${HOME}/tasks"
fi
export TASKRC="${XDG_CONFIG_HOME}/task/taskrc"
export PARALLEL_HOME="$XDG_CONFIG_HOME/parallel"
export CCACHE_CONFIGPATH="${XDG_CONFIG_HOME}/ccache.config"

View file

@ -1,6 +1,3 @@
file:///home/severin/documents Documents
file:///home/severin/downloads Downloads
file:///home/severin/videos Videos
file:///home/severin/projects Projects
file:///home/severin/dotfiles dotfiles
file:///home/severin/work Work

View file

@ -142,7 +142,7 @@ click-left = xdg-open https://mail.google.com
###############################################################################
[module/todo]
type = custom/script
exec = [ "${IS_WORK}" = "0" ] && task count due.before:tomorrow and status:pending or due: and status:pending
exec = task count due.before:tomorrow and status:pending or due: and status:pending
format = <label>
label =  %output%

View file

@ -19,6 +19,10 @@ fi
print_time_log "sync-notes" "Synchronizing notes"
if [ "${IS_WORK}" = "1" ]; then
export GIT_SSH_COMMAND="ssh -i /home/severin/.ssh/severin_id_rsa"
fi
cd "/home/severin/notes" || exit
git pull > /dev/null 2>&1
git add --all > /dev/null 2>&1

View file

@ -24,6 +24,10 @@ export TASKRC="/home/severin/.config/task/taskrc"
task sync
if [ "${IS_WORK}" = "1" ]; then
export GIT_SSH_COMMAND="ssh -i /home/severin/.ssh/severin_id_rsa"
fi
cd "/home/severin/tasks" || exit
git pull > /dev/null 2>&1
git add --all > /dev/null 2>&1