Enable tasks and notes in work environment
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
5f170c2db6
commit
0fb408fc24
6 changed files with 25 additions and 27 deletions
29
install
29
install
|
@ -110,6 +110,7 @@ ADD_GROUPS=(
|
||||||
SYSTEMD_SERVICES=(
|
SYSTEMD_SERVICES=(
|
||||||
"acpid"
|
"acpid"
|
||||||
"cronie"
|
"cronie"
|
||||||
|
"docker"
|
||||||
"NetworkManager"
|
"NetworkManager"
|
||||||
"org.cups.cupsd"
|
"org.cups.cupsd"
|
||||||
"suspend"
|
"suspend"
|
||||||
|
@ -243,22 +244,20 @@ else
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${IS_WORK}" = "0" ]; then
|
print_section "Setup notes directory"
|
||||||
print_section "Setup notes directory"
|
if [ ! -d "${HOME}/notes" ]; then
|
||||||
if [ ! -d "${HOME}/notes" ]; then
|
git clone gl:notes "${HOME}/notes"
|
||||||
git clone gl:notes "${HOME}/notes"
|
print_log "Created notes directory"
|
||||||
print_log "Created notes directory"
|
else
|
||||||
else
|
print_log "Notes directory already exists"
|
||||||
print_log "Notes directory already exists"
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
print_section "Setup tasks directory"
|
print_section "Setup tasks directory"
|
||||||
if [ ! -d "${HOME}/tasks" ]; then
|
if [ ! -d "${HOME}/tasks" ]; then
|
||||||
git clone gl:tasks "${HOME}/tasks"
|
git clone gl:tasks "${HOME}/tasks"
|
||||||
print_log "Created tasks directory"
|
print_log "Created tasks directory"
|
||||||
else
|
else
|
||||||
print_log "Tasks directory allready exists"
|
print_log "Tasks directory allready exists"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -54,13 +54,7 @@ export GEM_SPEC_CACHE="${XDG_CACHE_HOME}/gem/specs"
|
||||||
mkdir -p "${XDG_DATA_HOME}/wine/prefixes"
|
mkdir -p "${XDG_DATA_HOME}/wine/prefixes"
|
||||||
export WINEPREFIX="${XDG_DATA_HOME}/wine/prefixes/default"
|
export WINEPREFIX="${XDG_DATA_HOME}/wine/prefixes/default"
|
||||||
export SQLITE_HISTORY="${XDG_DATA_HOME}/sqlite_history"
|
export SQLITE_HISTORY="${XDG_DATA_HOME}/sqlite_history"
|
||||||
|
export TASKDATA="${HOME}/tasks"
|
||||||
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 TASKRC="${XDG_CONFIG_HOME}/task/taskrc"
|
||||||
export PARALLEL_HOME="$XDG_CONFIG_HOME/parallel"
|
export PARALLEL_HOME="$XDG_CONFIG_HOME/parallel"
|
||||||
export CCACHE_CONFIGPATH="${XDG_CONFIG_HOME}/ccache.config"
|
export CCACHE_CONFIGPATH="${XDG_CONFIG_HOME}/ccache.config"
|
||||||
|
|
|
@ -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/projects Projects
|
||||||
file:///home/severin/dotfiles dotfiles
|
file:///home/severin/dotfiles dotfiles
|
||||||
file:///home/severin/work Work
|
file:///home/severin/work Work
|
||||||
|
|
|
@ -142,7 +142,7 @@ click-left = xdg-open https://mail.google.com
|
||||||
###############################################################################
|
###############################################################################
|
||||||
[module/todo]
|
[module/todo]
|
||||||
type = custom/script
|
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>
|
format = <label>
|
||||||
label = %output%
|
label = %output%
|
||||||
|
|
|
@ -19,6 +19,10 @@ fi
|
||||||
|
|
||||||
print_time_log "sync-notes" "Synchronizing notes"
|
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
|
cd "/home/severin/notes" || exit
|
||||||
git pull > /dev/null 2>&1
|
git pull > /dev/null 2>&1
|
||||||
git add --all > /dev/null 2>&1
|
git add --all > /dev/null 2>&1
|
||||||
|
|
|
@ -24,6 +24,10 @@ export TASKRC="/home/severin/.config/task/taskrc"
|
||||||
|
|
||||||
task sync
|
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
|
cd "/home/severin/tasks" || exit
|
||||||
git pull > /dev/null 2>&1
|
git pull > /dev/null 2>&1
|
||||||
git add --all > /dev/null 2>&1
|
git add --all > /dev/null 2>&1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue