commit da8f30a4b631dea73591f38596a97b1a2cd2b448
parent 6a9380268710d4d601e0291555e3a62ee5635204
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 31 Oct 2018 14:10:50 +0100
Merge branch 'master' of gitlab.com:admesg/dotfiles
Diffstat:
5 files changed, 21 insertions(+), 12 deletions(-)
diff --git a/init/30_macos_recipes.sh b/init/30_macos_recipes.sh
@@ -29,6 +29,7 @@ brews=(
ffmpeg
fortune
fzf # fuzzy file finder
+ gcal
git
gnupg
gnuski # skiing game
diff --git a/links/.offlineimaprc b/links/.offlineimaprc
@@ -33,9 +33,7 @@ localrepository = riseup-local
remoterepository = riseup-remote
# Status cache. Default is plain, which eventually becomes huge and slow.
#status_backend = sqlite
-#presynchook = imapfilter -c ~/.imapfilter/riseup.lua
-#presynchook = imapfilter -t /usr/local/etc/openssl/cert.pem -c ~/.imapfilter/riseup.lua
-presynchook = imapfilter -t ~/.mutt/cert.pem -c ~/.imapfilter/riseup.lua
+#presynchook = imapfilter -t ~/.mutt/cert.pem -c ~/.imapfilter/riseup.lua
postsynchook = notmuch new
# Minutes between syncs
@@ -315,7 +313,7 @@ localrepository = noaa-local
remoterepository = noaa-remote
# Status cache. Default is plain, which eventually becomes huge and slow.
#status_backend = sqlite
-presynchook = imapfilter -t ~/.mutt/cert.pem -c ~/.imapfilter/noaa.lua
+#presynchook = imapfilter -t ~/.mutt/cert.pem -c ~/.imapfilter/noaa.lua
postsynchook = notmuch new
# Minutes between syncs
@@ -374,7 +372,7 @@ sslcacertfile=/usr/local/etc/openssl/cert.pem
[Account adamsgaard]
localrepository = adamsgaard-local
remoterepository = adamsgaard-remote
-presynchook = imapfilter -t ~/.mutt/cert.pem -c ~/.imapfilter/adamsgaard.lua
+#presynchook = imapfilter -t ~/.mutt/cert.pem -c ~/.imapfilter/adamsgaard.lua
postsynchook = notmuch new
[Repository adamsgaard-local]
diff --git a/links/.w3m/bookmark.html b/links/.w3m/bookmark.html
@@ -5,16 +5,17 @@
<h2>Search</h2>
<ul>
<li><a href="https://duckduckgo.com/lite/">DuckDuckGo (https)</a>
+<li><a href="https://en.wikipedia.org/wiki/Main_Page">Wikipedia (EN) Main Page</a>
<!--End of section (do not delete this comment)-->
</ul>
<h2>News</h2>
<ul>
<li><a href="https://text.npr.org/">NPR (text only)</a>
+<li><a href="https://dr.dk/nyheder/">DR Nyheder</a>
<li><a href="https://lite.cnn.io/en">CNN (text only)</a>
<li><a href="https://www.nytimes.com/">New York Times</a>
-<li><a href="https://www.democracynow.org/">Democracy Now</a>
-<li><a href="https://news.ycombinator.com/">Hacker News</a>
<li><a href="https://www.bbc.com/news/science_and_environment">BBC Science & Environment</a>
+<li><a href="https://news.ycombinator.com/">Hacker News</a>
<!--End of section (do not delete this comment)-->
</ul>
<h2>Security</h2>
@@ -34,9 +35,9 @@
<li><a href="https://www.photrio.com/forum/">Photrio Forums</a>
<!--End of section (do not delete this comment)-->
</ul>
-<h2>Wiki</h2>
+<h2>Work</h2>
<ul>
-<li><a href="https://en.wikipedia.org/wiki/Main_Page">Wikipedia (EN) Main Page</a>
+<li><a href="https://intra.mfvm.dk/mst/Sider/Welcome.aspx">MST Intra</a>
<!--End of section (do not delete this comment)-->
</ul>
<h2>Media</h2>
diff --git a/links/bin/forecast b/links/bin/forecast
@@ -27,8 +27,6 @@ if [ $# -gt 0 ]; then
elif [ "$1" == "wind" ]; then
url="http://servlet.dmi.dk/bv/servlet/bvImage?stat=6065¶m=wind"
fi
-else
- exit 1
fi
tmpfile=$(mktemp).png
diff --git a/misc_code/bitbar-plugins/calendar.30s.sh b/misc_code/bitbar-plugins/calendar.30s.sh
@@ -1,2 +1,13 @@
-#!/bin/bash
+#!/usr/bin/env zsh
+cal="/usr/local/bin/gcal --starting-day=Monday --with-week-number"
echo "$(date +'%Y-%m-%d') | color=#666666"
+echo "---"
+for i in $(seq 2 8); do
+ echo -n "$(eval $cal | head -n $i | tail -n 1) "
+ echo "| font=PragmataPro color=white trim=false"
+done
+for i in $(seq 2 43); do
+ echo -n "-- "
+ echo -n "$(eval $cal $(date +%Y) | head -n $i | tail -n 1) "
+ echo "| font=PragmataPro color=white trim=false size=11"
+done