aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2022-12-14 12:55:45 -0700
committerJosh Rahm <rahm@google.com>2022-12-14 12:56:36 -0700
commitd7f4e6cdc9693e58733f67168a1fe84f0c805507 (patch)
treef099adfed510e22ce851d030746bb6b80bffd213 /install.sh
parentc8b87f9bb5336ca4866d54b5bf468e55fece32c3 (diff)
downloadrde-d7f4e6cdc9693e58733f67168a1fe84f0c805507.tar.gz
rde-d7f4e6cdc9693e58733f67168a1fe84f0c805507.tar.bz2
rde-d7f4e6cdc9693e58733f67168a1fe84f0c805507.zip
Rewrite xmobar-weather in Haskell.
This adds a new binary that replaces the jenky Perl weather script. In addition this switches the weather source to wttr.in. Before it would always pull the weather from the same weather station, which is not what I want.
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 59a5078..f862fe8 100755
--- a/install.sh
+++ b/install.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+stack build
+
real_dir=$(dirname $(readlink -f "$0"))
cd "$real_dir"
@@ -13,6 +15,9 @@ cc -o \
xmobar/extras/battery/battery.c \
-lm
+ln -sf "$(stack path --local-install-root)/bin/xmobar-weather" build/extras/HOME/.xmonad/xmobar-weather
+ln -sf "$(stack path --local-install-root)/bin/xmobar-weather" extras/HOME/.xmonad/xmobar-weather
+
GLOBIGNORE=".:.."
shopt -u dotglob