From 0ceac6ad674128d77401e4355b915fc38addc572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Thu, 12 Mar 2020 11:52:14 +0000 Subject: [PATCH] Switch from gcal/todoist to org-agenda!!! --- dots/.conkyrc | 5 +---- scripts/today.sh | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/dots/.conkyrc b/dots/.conkyrc index 273c7d1..76bb5ce 100644 --- a/dots/.conkyrc +++ b/dots/.conkyrc @@ -65,12 +65,9 @@ conky.text = [[ ${font VictorMono Nerd Font:size=9:bold}Sync ${font VictorMono Nerd Font:size=9:regular}${exec command insync get_sync_progress} $hr -${font VictorMono Nerd Font:size=9:bold}Calendar +${font VictorMono Nerd Font:size=9:bold}Agenda ${font VictorMono Nerd Font:size=9:regular}${exec command ~/.linux/scripts/today.sh} $hr -${font VictorMono Nerd Font:size=9:bold}To do -${font VictorMono Nerd Font:size=9:regular}${exec command ~/go/bin/todoist sync && ~/go/bin/todoist list --filter '(overdue | today)' | sed 's/^..............//' | sed 's/\#Inbox\ //g' | sed 's/\ ..\:..\ //g' | sort | sed 's/^.\{14\}//'} -$hr ${font VictorMono Nerd Font:size=9:bold}Music ${font VictorMono Nerd Font:size=9:regular}${exec command ~/.linux/scripts/nowplaying.sh} ${execbar command ~/.linux/scripts/cmus-conky-timebar.sh} diff --git a/scripts/today.sh b/scripts/today.sh index c21e975..f547194 100755 --- a/scripts/today.sh +++ b/scripts/today.sh @@ -1,6 +1,3 @@ #/usr/bin/bash -now=$(date "+%Y-%m-%d") -tomorrow=$(date "+%Y-%m-%d" -d "+1 day") - -gcalcli agenda $now $tomorrow --military --nodeclined | sed 's/\x1b\[[0-9;]*m//g' +emacs -batch -Q -l ~/.linux/dots/emacs/agenda.el -eval '(org-batch-agenda "a" org-agenda-span 1)'