--- notion-id: bf23565a-d7d7-4f81-89d7-90ea08702662 --- 注意因为原装系统是英文需要修改成中文才支持小组件 update的小组件需要修改`variables.yuck`内部文件 ```javascript ;; Available updates (FOR PACMAN ONLY) (defpoll UPDATES :interval "900s" `apt-get --just-print upgrade | grep 'Inst ' | wc -l`) ``` > [!note]+ # Eww文件路径修改 > ```plain text > /home/kali/.config/eww/sidebar/disk.yuck > 内容修改 > 对应本系统对应地址 > ``` > [!note]+ # EWW窗口设置 > ```javascript > /home/kali/.config/eww/sidebar.yuck > 内容修改 > (defwindow sidebar :stacking "bg" > #不会遮挡其他程序 > ``` > [!note]+ # 天气插件 > **登录网站并注册** > [https://openweathermap.org/](https://openweathermap.org/) > **获取API:** > 注册以后选择登录账号下方的**My API Keys** > 选择Create创建一个新的Key,并复制例如`dd1e2ce6a319898ea392661d34e7xxxx` > **获取城市ID**: > 在左上方搜索栏中输入定位城市地址【中国地址请输入拼音】,然后选择相应搜索结果 > 查看浏览器相应地址是否变更为:`h`[`ttps://openweathermap.org/city/1809461`](https://openweathermap.org/city/1809461) > 地址栏最后数字均为`定位城市代码` 复制[`1809461`](https://openweathermap.org/city/1809461) > **修改eww文件** > ```plain text > /home/kali/.config/eww/scripts/weather > ``` > ```plain text > ##将KEY和ID替换成自己的api和城市id > KEY="dd1e2ce6a319898ea392661d34e7f4ed" > ID="1809461" > ``` > > [!note]+ 参考内容 > > [Word Press获取open weather](Word%20Press获取open%20weather.md) > >