From 0fb408fc24e8b65da945c1772a108b2243454e56 Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Mon, 17 Jun 2019 21:29:40 +0200 Subject: [PATCH] Enable tasks and notes in work environment Signed-off-by: Severin Kaderli --- install | 29 ++++++++++++++--------------- system/.config/custom/env | 8 +------- system/.config/gtk-3.0/bookmarks | 3 --- system/.config/polybar/config | 2 +- system/.local/bin/sync-notes | 4 ++++ system/.local/bin/sync-tasks | 6 +++++- 6 files changed, 25 insertions(+), 27 deletions(-) diff --git a/install b/install index d4131f1..47c4df7 100755 --- a/install +++ b/install @@ -110,6 +110,7 @@ ADD_GROUPS=( SYSTEMD_SERVICES=( "acpid" "cronie" + "docker" "NetworkManager" "org.cups.cupsd" "suspend" @@ -243,22 +244,20 @@ else done fi -if [ "${IS_WORK}" = "0" ]; then - print_section "Setup notes directory" - if [ ! -d "${HOME}/notes" ]; then - git clone gl:notes "${HOME}/notes" - print_log "Created notes directory" - else - print_log "Notes directory already exists" - fi +print_section "Setup notes directory" +if [ ! -d "${HOME}/notes" ]; then + git clone gl:notes "${HOME}/notes" + print_log "Created notes directory" +else + print_log "Notes directory already exists" +fi - print_section "Setup tasks directory" - if [ ! -d "${HOME}/tasks" ]; then - git clone gl:tasks "${HOME}/tasks" - print_log "Created tasks directory" - else - print_log "Tasks directory allready exists" - fi +print_section "Setup tasks directory" +if [ ! -d "${HOME}/tasks" ]; then + git clone gl:tasks "${HOME}/tasks" + print_log "Created tasks directory" +else + print_log "Tasks directory allready exists" fi diff --git a/system/.config/custom/env b/system/.config/custom/env index 6a3e8ea..c5269e3 100644 --- a/system/.config/custom/env +++ b/system/.config/custom/env @@ -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 TASKDATA="${HOME}/tasks" export TASKRC="${XDG_CONFIG_HOME}/task/taskrc" export PARALLEL_HOME="$XDG_CONFIG_HOME/parallel" export CCACHE_CONFIGPATH="${XDG_CONFIG_HOME}/ccache.config" diff --git a/system/.config/gtk-3.0/bookmarks b/system/.config/gtk-3.0/bookmarks index d02ca34..66d9bc7 100644 --- a/system/.config/gtk-3.0/bookmarks +++ b/system/.config/gtk-3.0/bookmarks @@ -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 diff --git a/system/.config/polybar/config b/system/.config/polybar/config index fe6843d..3a95b4d 100644 --- a/system/.config/polybar/config +++ b/system/.config/polybar/config @@ -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 =