<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Mindigma&#39;s Blog</title>
  
  
  <link href="https://777779999.xyz/atom.xml" rel="self"/>
  
  <link href="https://777779999.xyz/"/>
  <updated>2025-11-26T02:00:00.000Z</updated>
  <id>https://777779999.xyz/</id>
  
  <author>
    <name>Mindigma</name>
    
  </author>
  
  <generator uri="https://hexo.io/">Hexo</generator>
  
  <entry>
    <title>英语漂流 / English Drift</title>
    <link href="https://777779999.xyz/english-drift/"/>
    <id>https://777779999.xyz/english-drift/</id>
    <published>2025-09-21T07:05:56.000Z</published>
    <updated>2025-11-26T02:00:00.000Z</updated>
    
    <content type="html"><![CDATA[<p>为了节省空间，我把闲话放到这个页面里 -&gt; <a href="./preface">一些闲话</a></p><h2 id="词汇量变化一览（word-families）">词汇量变化一览（word families）</h2><p><canvas id="lineChart" width="400" height="200"></canvas></p><script src="https://cdn.jsdelivr.net/npm/chart.js"></script><script>    const ctx = document.getElementById('lineChart').getContext('2d');    const myChart = new Chart(ctx, {        type: 'line',        data: {            labels: ["2025/09/21"],            datasets: [{                label: '词汇量',                data: [6400],                borderColor: 'rgb(75, 192, 192)',                tension: 0.1            }]        },        options: {            plugins: {                tooltip: {                    mode: 'index',                    intersect: false                }            },            hover: {                mode: 'index',                intersect: false            },            scales: {                y: {                    beginAtZero: true                }            }        }    });</script><h2 id="漂流日志">漂流日志</h2><h3 id="9-月">9 月</h3><hr><h4 id="阅读">阅读</h4><ul><li><strong>09/26/25</strong><br>  Magic Tree House #1 - Dinosaurs Before Dark</li></ul><h4 id="播客">播客</h4><ul><li><strong>09/21/25</strong><br>  EnglishPod #1-4</li><li><strong>09/22/25</strong><br>  EnglishPod #5</li><li><strong>09/23/25</strong><br>  EnglishPod #6</li><li><strong>09/27/25</strong><br>  EnglishPod #7</li></ul><h3 id="10-月">10 月</h3><hr><h4 id="阅读-t2">阅读</h4><ul><li><strong>10/03/25</strong><br>  Diary of a Wimpy Kid</li><li><strong>10/04/25</strong><br>  Magic Tree House #1 - Dinosaurs Before Dark<br>  Magic Tree House #2 - The Knight at Dawn<br>  Magic Tree House #3 - Mummies in the Morning</li><li><strong>10/09/25</strong><br>  Magic Tree House #4 - Pirates Past Noon</li><li><strong>10/12/25</strong><br>  Magic Tree House #5 - Night of the Ninjas</li><li><strong>10/15/25</strong><br>  Magic Tree House #6 - Afternoon on the Amazon</li><li><strong>10/18/25</strong><br>  Magic Tree House #7 - Sunset of the Sabertooth<br>  Magic Tree House #8 - Midnight on the Moon</li><li><strong>10/19/25</strong><br>  Magic Tree House #9 - Dolphins at Daybreak<br>  Magic Tree House #10 - Ghost Town at Sundown</li><li><strong>10/23/25</strong><br>  Magic Tree House #11 - Lions at Lunchtime</li></ul><h4 id="播客-t2">播客</h4><ul><li><strong>10/04/25</strong><br>  EnglishPod #8-9<br>  EnglishPod #10</li><li><strong>10/12/25</strong><br>  EnglishPod #11<br>  EnglishPod #12</li><li><strong>10/14/25</strong><br>  EnglishPod #13</li></ul><h4 id="影视剧等">影视剧等</h4><ul><li><strong>10/03/25</strong><br>  The Dark Knight</li><li><strong>10/05/25</strong><br>  Interstellar</li><li><strong>10/13/25</strong><br>  Oppenheimer</li><li><strong>10/22/25</strong><br>  The Dark Knight Rises</li></ul><h3 id="11-月">11 月</h3><hr><h4 id="阅读-t3">阅读</h4><ul><li><strong>11/03/25</strong><br>  Magic Tree House #12 - Polar Bears past Bedtime</li><li><strong>11/19/25</strong><br>  Magic Tree House #13 - Vacation under the Volcano</li><li><strong>11/21/25</strong><br>  Magic Tree House #14 - Day of the Dragon King</li></ul><h4 id="影视剧等-t2">影视剧等</h4><ul><li><strong>11/12/25</strong><br>  Peaky Blinders S01E01</li><li><strong>11/16/25</strong><br>  Peaky Blinders S01E02 - S01E03</li><li><strong>11/20/25</strong><br>  Peaky Blinders S01E04</li><li><strong>11/25/25</strong><br>  Peaky Blinders S01E05 - S01E06</li></ul>]]></content>
    
    
    <summary type="html">本文将长期更新，记录我对「可理解输入假说」的实践。</summary>
    
    
    
    <category term="英语" scheme="https://777779999.xyz/categories/%E8%8B%B1%E8%AF%AD/"/>
    
    
    <category term="可理解输入" scheme="https://777779999.xyz/tags/%E5%8F%AF%E7%90%86%E8%A7%A3%E8%BE%93%E5%85%A5/"/>
    
  </entry>
  
  <entry>
    <title>SleepWatcher + blueutil 实现蓝牙随 MacBook 睡眠自动开关</title>
    <link href="https://777779999.xyz/sleepwatcher-blueutil/"/>
    <id>https://777779999.xyz/sleepwatcher-blueutil/</id>
    <published>2025-08-12T14:09:14.000Z</published>
    <updated>2025-08-12T14:09:14.000Z</updated>
    
    <content type="html"><![CDATA[<p>本文将介绍如何借助 <a href="https://www.bernhard-baehr.de/">SleepWatcher</a> 和 <a href="https://github.com/toy/blueutil">blueutil</a>，在 MacBook 进入睡眠和唤醒时自动关闭和开启蓝牙。</p><h2 id="安装-SleepWatcher-和-blueutil">安装 SleepWatcher 和 blueutil</h2><p>通过 Homebrew 安装：</p><pre><code class="hljs bash">$ brew install sleepwatcher blueutil</code></pre><p>你也可以选择从源码编译 SleepWatcher，官网提供了完整的 Makefile。本文仅介绍使用 Homebrew 的方法。</p><h2 id="配置脚本实现蓝牙开关">配置脚本实现蓝牙开关</h2><p>SleepWatcher 会在系统睡眠和唤醒时分别执行用户主目录下的 <code>~/.sleep</code> 和 <code>~/.wakeup</code> 脚本。我们通过这两个脚本调用 blueutil 来控制蓝牙状态。<br>需要注意的是，SleepWatcher 默认以 root 身份执行命令，但 blueutil 并不支持以 root 身份运行，因此需要切换回普通用户身份来执行。</p><p>执行以下命令确认 blueutil 路径：</p><pre><code class="hljs plaintext">$ which blueutil</code></pre><p>编辑 <code>~/.sleep</code> 脚本，添加以下内容，关闭蓝牙：</p><pre><code class="hljs bash"><span class="hljs-meta">#!/bin/bash</span><span class="hljs-built_in">sudo</span> -u yourUserName blueutilPath -p 0</code></pre><p>编辑 <code>~/.wakeup</code> 脚本，添加以下内容，开启蓝牙：</p><pre><code class="hljs bash"><span class="hljs-meta">#!/bin/bash</span><span class="hljs-built_in">sudo</span> -u yourUserName blueutilPath -p 1</code></pre><p>请自行替换 <code>yourUserName</code> 和 <code>blueutilPath</code>。</p><p>赋予脚本执行权限：</p><pre><code class="hljs bash">$ <span class="hljs-built_in">chmod</span> +x ~/.sleep ~/.wakeup</code></pre><h2 id="启动-SleepWatcher-服务">启动 SleepWatcher 服务</h2><p>最后，启动 SleepWatcher 服务，使配置生效：</p><pre><code class="hljs bash">$ brew services start sleepwatcher</code></pre><p>这样，当 MacBook 进入睡眠时蓝牙自动关闭，唤醒时自动开启。</p>]]></content>
    
    
    <summary type="html">本文将介绍如何借助 SleepWatcher 和 blueutil，在 MacBook 进入睡眠和唤醒时自动关闭和开启蓝牙。</summary>
    
    
    
    <category term="macOS" scheme="https://777779999.xyz/categories/macOS/"/>
    
    <category term="自动化" scheme="https://777779999.xyz/categories/macOS/%E8%87%AA%E5%8A%A8%E5%8C%96/"/>
    
    
    <category term="SleepWatcher" scheme="https://777779999.xyz/tags/SleepWatcher/"/>
    
    <category term="blueutil" scheme="https://777779999.xyz/tags/blueutil/"/>
    
    <category term="蓝牙" scheme="https://777779999.xyz/tags/%E8%93%9D%E7%89%99/"/>
    
  </entry>
  
</feed>
