summaryrefslogtreecommitdiff
path: root/dot_config
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toast.cafe>2020-09-06 11:23:43 -0400
committerChloe Kudryavtsev <toast@toast.cafe>2020-09-06 11:23:43 -0400
commit6e7a3dc4ebda8357fe9fff197ff9b607e32bcdcb (patch)
treeb87044adb9a01d56bf67a973c17721e50575715b /dot_config
parenttemplate go env (diff)
better laptop handling for streamlink
Diffstat (limited to 'dot_config')
-rw-r--r--dot_config/streamlink/config.tmpl7
1 files changed, 4 insertions, 3 deletions
diff --git a/dot_config/streamlink/config.tmpl b/dot_config/streamlink/config.tmpl
index 7f2f028..3473a77 100644
--- a/dot_config/streamlink/config.tmpl
+++ b/dot_config/streamlink/config.tmpl
@@ -1,10 +1,11 @@
player=mpv
verbose-player
-{{- if eq .chezmoi.hostname "LapToast" }}
+{{- $laptops := list "laptoast" "toastbp" -}}
+{{ if has (.chezmoi.hostname | lower) $laptops }}
default-stream=720p,720p60,1080p60,best
-{{- else }}
+{{ else }}
default-stream=best
-{{- end }}
+{{ end -}}
player-passthrough=hls,http,rtmp