2021-06-12 00:08:39 -04:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
# Build any binaries in necessary for my config to run at full capacity.
|
|
|
|
|
|
|
|
# ASSUME that stack is installed and that all repos with build scripts
|
|
|
|
# referenced here are already cloned.
|
|
|
|
|
|
|
|
run_stack_in_dir () {
|
|
|
|
local cur
|
|
|
|
cur="$(pwd)"
|
|
|
|
cd "$1" || return 1
|
2021-06-12 01:23:33 -04:00
|
|
|
echo "building binaries in $1"
|
2021-06-12 00:08:39 -04:00
|
|
|
stack install
|
|
|
|
cd "$cur" || return 1
|
|
|
|
}
|
|
|
|
|
2022-07-20 23:11:57 -04:00
|
|
|
export STACK_ROOT={{ .paths.stack }}
|
2021-06-12 00:08:39 -04:00
|
|
|
|
2022-07-28 23:22:17 -04:00
|
|
|
run_stack_in_dir ~/.config/rofi-extras \
|
|
|
|
:current-output \
|
|
|
|
:pinentry-rofi \
|
|
|
|
:rofi-autorandr \
|
|
|
|
:rofi-bt \
|
|
|
|
:rofi-bw \
|
|
|
|
:rofi-dev
|
|
|
|
{{ if .features.vpn -}}
|
|
|
|
run_stack_in_dir ~/.config/rofi-extras :rofi-evpn
|
|
|
|
{{- end }}
|
2022-07-21 23:38:38 -04:00
|
|
|
|
2022-07-28 23:22:17 -04:00
|
|
|
run_stack_in_dir ~/.config/xmonad
|
|
|
|
|
|
|
|
run_stack_in_dir ~/.config/xman
|
2022-07-31 22:58:13 -04:00
|
|
|
|
|
|
|
{{ if ne .features.conky_alias "none" -}}
|
|
|
|
## ASSUME luarocks is installed
|
|
|
|
~/.config/conky/install_rocks
|
|
|
|
{{- end }}
|