.
This commit is contained in:
parent
2a9167cb7e
commit
96573664a6
95 changed files with 4130 additions and 2328 deletions
|
|
@ -1,40 +1,38 @@
|
|||
<!doctype html>
|
||||
<html lang="en"><head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||
<html lang="en"><head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<link rel="shortcut icon" href="http://localhost:1313/favicon.ico">
|
||||
<link rel="shortcut icon" href="https://nonsense.dymc.win/favicon.ico">
|
||||
<link id="stylesheet" rel="stylesheet" href="/css/light.css">
|
||||
|
||||
<link rel="canonical" href="http://localhost:1313/handy-script-for-a-more-zen-twitch-experience/" />
|
||||
<link rel="canonical" href="https://nonsense.dymc.win/handy-script-for-a-more-zen-twitch-experience/" />
|
||||
<title>Handy script for a more zen twitch experience</title>
|
||||
</head>
|
||||
<body><header id="banner">
|
||||
<nav class="navbar">
|
||||
<div class="nav-left">
|
||||
|
||||
<a href="http://localhost:1313/" class="home">🏠</a>
|
||||
<a href="https://nonsense.dymc.win/" class="home">🏠</a>
|
||||
|
||||
<a
|
||||
href="/info/"
|
||||
title="--help"
|
||||
>--help</a
|
||||
title="👋"
|
||||
>👋</a
|
||||
><a
|
||||
href="/search/"
|
||||
title="🔎"
|
||||
>🔎</a
|
||||
>
|
||||
</div>
|
||||
<div class="nav-right">
|
||||
<input type="text" id="search" placeholder="🔎 leaf through the archive"/>
|
||||
|
||||
|
||||
<button id="toggle-button" class="toggle-button" onclick="toggleTheme()">🌚</button>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<main id="content">
|
||||
<article>
|
||||
<header id="post-header">
|
||||
<h3>Handy script for a more zen twitch experience</h3>
|
||||
<h2>Handy script for a more zen twitch experience</h2>
|
||||
<div>
|
||||
<time>August 13, 2025</time>
|
||||
<p>August 13, 2025</p>
|
||||
</div>
|
||||
</header><p>I like to watch twitch streams.
|
||||
Watching them in the browser at <code>twitch.tv</code> is generally not an experience which sparks joy though.
|
||||
|
|
@ -99,7 +97,7 @@ Here it is:</p>
|
|||
</span></span><span class="line"><span class="cl"> <span class="c1"># get first column from selection aka stream name</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="nv">meat</span><span class="o">=</span><span class="k">$(</span><span class="nb">echo</span> <span class="s2">"</span><span class="nv">$choice</span><span class="s2">"</span> <span class="p">|</span> awk <span class="s1">'{print $1}'</span><span class="k">)</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="s2">"</span><span class="si">${</span><span class="nv">NOTIFY</span><span class="si">}</span><span class="s2">"</span> <span class="s2">"twitch -- launching twitch.tv/</span><span class="nv">$meat</span><span class="s2">"</span>
|
||||
</span></span><span class="line"><span class="cl"> streamlink twitch.tv/<span class="s2">"</span><span class="nv">$meat</span><span class="s2">"</span> 1080p60 --player <span class="s2">$"{PLAYER}"</span>
|
||||
</span></span><span class="line"><span class="cl"> streamlink twitch.tv/<span class="s2">"</span><span class="nv">$meat</span><span class="s2">"</span> 1080p60 --player <span class="s2">"</span><span class="si">${</span><span class="nv">PLAYER</span><span class="si">}</span><span class="s2">"</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
|
||||
</span></span></code></pre></div><h3 id="what-it-does">What it does:</h3>
|
||||
<ul>
|
||||
|
|
@ -130,13 +128,11 @@ Here it is:</p>
|
|||
<li>takes a second to talk to the internet so things don’t launch immediately</li>
|
||||
<li>have to faff with getting api key - <a href="https://dev.twitch.tv/docs/api/get-started/">how to get one btw</a></li>
|
||||
</ul>
|
||||
</article>
|
||||
<p>Hope you enjoyed bye</p></article>
|
||||
</main>
|
||||
|
||||
<footer id="footer">
|
||||
<footer id="footer">
|
||||
<small>
|
||||
made with <a href="https://gohugo.io">hugo</a> and my bastardised version of
|
||||
<a href="https://github.com/LukasJoswiak/etch">this nice theme</a>
|
||||
made with <a href="https://gohugo.io">hugo</a>
|
||||
</small>
|
||||
|
||||
<script src="/js/search.js"></script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue