Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ocfox/den
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.1.0
Choose a base ref
...
head repository: ocfox/den
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Apr 22, 2023

  1. flake/home: use haumea

    ocfox committed Apr 22, 2023
    Copy the full SHA
    188d6d3 View commit details
  2. whitefox: haumea

    ocfox committed Apr 22, 2023
    Copy the full SHA
    3a2f239 View commit details
  3. back to sway

    ocfox committed Apr 22, 2023
    Copy the full SHA
    da8b087 View commit details

Commits on Apr 24, 2023

  1. home-desktop wayland

    ocfox committed Apr 24, 2023
    Copy the full SHA
    ad5f7f1 View commit details
  2. add home-darwin

    ocfox committed Apr 24, 2023
    Copy the full SHA
    9b426cd View commit details
  3. Copy the full SHA
    95507ee View commit details
  4. remove useless attributes

    ocfox committed Apr 24, 2023
    Copy the full SHA
    e41b063 View commit details

Commits on Apr 25, 2023

  1. Copy the full SHA
    bb6b1ce View commit details
  2. Copy the full SHA
    8fda531 View commit details
  3. add openssh key

    ocfox committed Apr 25, 2023
    Copy the full SHA
    1353a30 View commit details
  4. Copy the full SHA
    b5fe0ef View commit details

Commits on Apr 26, 2023

  1. alalacritty: fix color

    ocfox committed Apr 26, 2023
    Copy the full SHA
    3629923 View commit details
  2. darwin: tide

    ocfox committed Apr 26, 2023
    Copy the full SHA
    65de405 View commit details
  3. darwin: fix PATH order

    ocfox committed Apr 26, 2023
    Copy the full SHA
    4ac6e34 View commit details
  4. Copy the full SHA
    4a87bd6 View commit details
  5. Copy the full SHA
    ecdc2c3 View commit details
  6. programs/nvim: add gitsigns

    ocfox committed Apr 26, 2023
    Copy the full SHA
    4c91cad View commit details

Commits on May 20, 2023

  1. Copy the full SHA
    e490464 View commit details
  2. whitefox/hardware: enable qmk

    ocfox committed May 20, 2023
    Copy the full SHA
    c302bae View commit details
  3. home-desktop: fix waybar

    ocfox committed May 20, 2023
    Copy the full SHA
    fe23e6f View commit details
  4. Copy the full SHA
    eb03483 View commit details
  5. inputs: bump

    ocfox committed May 20, 2023
    Copy the full SHA
    16e5f52 View commit details

Commits on May 22, 2023

  1. add nix registry self

    ocfox committed May 22, 2023
    Copy the full SHA
    27c5e45 View commit details

Commits on May 28, 2023

  1. inputs: bump

    ocfox committed May 28, 2023
    Copy the full SHA
    71e9195 View commit details

Commits on Jun 24, 2023

  1. update outdated syntax

    ocfox committed Jun 24, 2023
    Copy the full SHA
    3da6990 View commit details

Commits on Jul 21, 2023

  1. remove hyprland

    ocfox committed Jul 21, 2023
    Copy the full SHA
    805795a View commit details
  2. use minegrub

    ocfox committed Jul 21, 2023
    Copy the full SHA
    f49d7af View commit details
  3. inputs: bump

    ocfox committed Jul 21, 2023
    Copy the full SHA
    e512a11 View commit details
  4. grub/minegrub: add splash text

    ocfox committed Jul 21, 2023
    Copy the full SHA
    d60cb5e View commit details

Commits on Aug 3, 2023

  1. Update README.md

    ocfox authored Aug 3, 2023
    Copy the full SHA
    ab68a4f View commit details

Commits on Aug 17, 2023

  1. whitefox/hardware: update

    ocfox committed Aug 17, 2023
    Copy the full SHA
    f03534f View commit details
  2. inputs: bump

    ocfox committed Aug 17, 2023
    Copy the full SHA
    c03b4a1 View commit details

Commits on Aug 23, 2023

  1. update options

    ocfox committed Aug 23, 2023
    Copy the full SHA
    994fc34 View commit details
  2. inputs: bump

    ocfox committed Aug 23, 2023
    Copy the full SHA
    39fdc2d View commit details

Commits on Sep 12, 2023

  1. sway: add input patch

    ocfox committed Sep 12, 2023
    Copy the full SHA
    e4920ed View commit details
  2. remove git config

    ocfox committed Sep 12, 2023
    Copy the full SHA
    7fac5ff View commit details
  3. update outdated function

    ocfox committed Sep 12, 2023
    Copy the full SHA
    93a2db9 View commit details
  4. inputs: bump

    ocfox committed Sep 12, 2023
    Copy the full SHA
    c555a91 View commit details
  5. programs: exa -> eza

    ocfox committed Sep 12, 2023
    Copy the full SHA
    358f649 View commit details

Commits on Sep 25, 2023

  1. hardware: add rocm

    ocfox committed Sep 25, 2023
    Copy the full SHA
    7ae6c98 View commit details
  2. remove pkgs

    ocfox committed Sep 25, 2023
    Copy the full SHA
    29e5c42 View commit details
  3. inputs: bump

    ocfox committed Sep 25, 2023
    Copy the full SHA
    b0b607a View commit details
  4. enable yubikey agent

    ocfox committed Sep 25, 2023
    Copy the full SHA
    b681b8f View commit details

Commits on Sep 29, 2023

  1. inputs: bump

    ocfox committed Sep 29, 2023
    Copy the full SHA
    e5a009c View commit details

Commits on Oct 9, 2023

  1. inputs: bump

    ocfox committed Oct 9, 2023
    Copy the full SHA
    4e55a22 View commit details
  2. Copy the full SHA
    a383b15 View commit details

Commits on Oct 18, 2023

  1. inputs: bump

    ocfox committed Oct 18, 2023
    Copy the full SHA
    ee07724 View commit details
  2. eza: enable icons & git

    ocfox committed Oct 18, 2023
    Copy the full SHA
    d0855e6 View commit details
  3. tmpfiles: add rocm clr

    ocfox committed Oct 18, 2023
    Copy the full SHA
    39964f5 View commit details

Commits on Oct 20, 2023

  1. remove darwin

    ocfox committed Oct 20, 2023
    Copy the full SHA
    40894f2 View commit details
Showing with 10,024 additions and 1,686 deletions.
  1. +13 −0 .devcontainer.json
  2. +23 −0 .github/workflows/blog.yml
  3. +3 −3 .github/workflows/check.yml
  4. +1 −1 .github/workflows/ferrucyon.yml
  5. +3 −0 .gitignore
  6. +21 −0 LICENSE
  7. +37 −7 README.md
  8. +6 −0 blog/content/archives.md
  9. +5 −0 blog/content/archives.zh.md
  10. +142 −0 blog/content/posts/css-learn-1.md
  11. +29 −0 blog/content/posts/dont-care-future.md
  12. +74 −0 blog/content/posts/dual-boot-bluetooth.md
  13. +60 −0 blog/content/posts/email-structure.md
  14. +50 −0 blog/content/posts/ethernet-cable.zh.md
  15. +112 −0 blog/content/posts/headscale-setup.md
  16. +34 −0 blog/content/posts/if-life-is-pain.zh.md
  17. +103 −0 blog/content/posts/mastodon-nixos.zh.md
  18. +20 −0 blog/content/posts/the-time.md
  19. +5 −0 blog/content/search.md
  20. +5 −0 blog/content/search.zh.md
  21. +33 −0 blog/default.nix
  22. +67 −0 blog/hugo.toml
  23. +1 −0 blog/static/.nojekyll
  24. +1 −0 blog/static/.well-known/webfinger
  25. +1 −0 blog/static/CNAME
  26. BIN blog/static/favicon.ico
  27. +0 −11 devices/canokey/default.nix
  28. +0 −6 devices/default.nix
  29. +547 −91 flake.lock
  30. +98 −26 flake.nix
  31. +8 −0 garnix.yaml
  32. +21 −0 home-desktop/_pkgs/macshot.nix
  33. +9 −0 home-desktop/_pkgs/player-metadata.nix
  34. +10 −0 home-desktop/_pkgs/powermenu.nix
  35. +12 −0 home-desktop/_pkgs/recorder-status.nix
  36. +12 −0 home-desktop/_pkgs/recorder-toggle.nix
  37. +14 −0 home-desktop/_pkgs/sway-im.nix
  38. +18 −0 home-desktop/_pkgs/swaylock.nix
  39. +40 −0 home-desktop/_pkgs/wallpapers.nix
  40. +16 −0 home-desktop/gtk.nix
  41. +12 −0 home-desktop/home/default.nix
  42. +9 −0 home-desktop/home/packages.nix
  43. +1 −0 home-desktop/programs/alacritty.nix
  44. +11 −0 home-desktop/programs/default.nix
  45. +13 −0 home-desktop/programs/fish.nix
  46. +1 −0 home-desktop/programs/kitty.nix
  47. +136 −0 home-desktop/programs/niri.nix
  48. +5 −0 home-desktop/programs/waybar/default.nix
  49. +133 −0 home-desktop/programs/waybar/settings.nix
  50. +1 −14 { → home-desktop}/programs/waybar/waybar.css
  51. +9 −0 home-desktop/services/mako.nix
  52. +116 −0 home-desktop/wayland/windowManager/sway.nix
  53. +1 −0 home/home/default.nix
  54. +9 −0 home/home/packages.nix
  55. +46 −0 home/programs/alacritty.nix
  56. +9 −0 home/programs/atuin.nix
  57. +15 −0 home/programs/default.nix
  58. +37 −0 home/programs/fish.nix
  59. +11 −0 home/programs/git.nix
  60. +4 −0 home/programs/helix/default.nix
  61. +11 −0 home/programs/helix/languages.nix
  62. +12 −0 home/programs/helix/settings/default.nix
  63. +18 −0 home/programs/helix/settings/keys.nix
  64. +69 −0 home/programs/kitty.nix
  65. +14 −0 home/programs/mpv.nix
  66. +57 −0 home/programs/neovim/default.nix
  67. +9 −1 {programs/nvim → home/programs/neovim}/nvim.lua
  68. +9 −0 home/programs/ssh.nix
  69. +20 −0 home/programs/tmux.nix
  70. +39 −0 hosts/arcticfox/_hardware.nix
  71. +5 −0 hosts/arcticfox/age.nix
  72. +6 −0 hosts/arcticfox/boot.nix
  73. +0 −38 hosts/arcticfox/configuration.nix
  74. +10 −15 hosts/arcticfox/default.nix
  75. +18 −0 hosts/arcticfox/environment/systemPackages.nix
  76. +0 −9 hosts/arcticfox/hardware-configuration.nix
  77. +15 −0 hosts/arcticfox/home-manager.nix
  78. +0 −23 hosts/arcticfox/home.nix
  79. +7 −0 hosts/arcticfox/networking.nix
  80. +0 −10 hosts/arcticfox/packages.nix
  81. +13 −0 hosts/arcticfox/programs.nix
  82. +26 −0 hosts/arcticfox/services/default.nix
  83. +194 −0 hosts/arcticfox/services/sing-box/_sing-box.nix
  84. +5 −0 hosts/arcticfox/services/sing-box/default.nix
  85. +20 −0 hosts/arcticfox/systemd.nix
  86. +35 −0 hosts/bebop/default.nix
  87. +60 −0 hosts/bebop/disko.nix
  88. +3,952 −0 hosts/bebop/facter.json
  89. +8 −0 hosts/bebop/networking.nix
  90. +8 −0 hosts/bebop/services.nix
  91. +12 −0 hosts/bebop/systemd.nix
  92. +43 −0 hosts/civet/default.nix
  93. +35 −0 hosts/civet/disko.nix
  94. +1,530 −0 hosts/civet/facter.json
  95. +48 −0 hosts/civet/networking.nix
  96. +43 −0 hosts/civet/services.nix
  97. +6 −0 hosts/civet/systemd.nix
  98. +71 −0 hosts/default.nix
  99. +34 −0 hosts/general/nix.nix
  100. +10 −0 hosts/general/nixpkgs.nix
  101. +13 −0 hosts/redfox/_hardware.nix
  102. +37 −0 hosts/redfox/default.nix
  103. +35 −0 hosts/redfox/disko.nix
  104. +11 −0 hosts/redfox/networking.nix
  105. +109 −0 hosts/redfox/services.nix
  106. +19 −0 hosts/redfox/systemd.nix
  107. +16 −0 hosts/sakhalin/_hardware.nix
  108. +17 −0 hosts/sakhalin/default.nix
  109. +15 −0 hosts/sakhalin/networking.nix
  110. +4 −0 hosts/sakhalin/services.nix
  111. +42 −0 hosts/silverfox/_hardware.nix
  112. +80 −0 hosts/silverfox/default.nix
  113. +1 −0 hosts/silverfox/environment/sessionVariables.nix
  114. +20 −0 hosts/silverfox/environment/systemPackages.nix
  115. +34 −0 hosts/silverfox/fonts.nix
  116. +18 −0 hosts/silverfox/home-manager.nix
  117. +12 −0 hosts/silverfox/programs.nix
  118. +4 −0 hosts/silverfox/security.nix
  119. +0 −62 hosts/sliverfox/configuration.nix
  120. +0 −14 hosts/sliverfox/default.nix
  121. +0 −35 hosts/sliverfox/home.nix
  122. +16 −0 hosts/vulpes/_hardware.nix
  123. +22 −0 hosts/vulpes/default.nix
  124. +15 −0 hosts/vulpes/networking.nix
  125. +6 −0 hosts/vulpes/security.nix
  126. +45 −0 hosts/vulpes/services.nix
  127. +50 −0 hosts/whitefox/_hardware.nix
  128. +15 −0 hosts/whitefox/boot.nix
  129. +0 −144 hosts/whitefox/configuration.nix
  130. +57 −33 hosts/whitefox/default.nix
  131. +0 −6 hosts/whitefox/env.nix
  132. +1 −0 hosts/whitefox/environment/sessionVariables.nix
  133. +31 −0 hosts/whitefox/environment/systemPackages.nix
  134. +31 −32 hosts/whitefox/fonts.nix
  135. +0 −30 hosts/whitefox/hardware.nix
  136. +18 −0 hosts/whitefox/home-manager.nix
  137. +0 −100 hosts/whitefox/home.nix
  138. +12 −0 hosts/whitefox/i18n.nix
  139. +7 −0 hosts/whitefox/networking.nix
  140. +0 −53 hosts/whitefox/packages.nix
  141. +25 −0 hosts/whitefox/programs.nix
  142. +5 −0 hosts/whitefox/security.nix
  143. +24 −0 hosts/whitefox/services.nix
  144. +22 −0 hosts/whitefox/systemd.nix
  145. +10 −0 hosts/whitefox/virtualisation.nix
  146. +8 −8 iso/configuration.nix
  147. +12 −7 iso/default.nix
  148. +3 −6 iso/home.nix
  149. +10 −0 modules/default.nix
  150. +33 −0 modules/shadowsocks.nix
  151. +130 −0 modules/tailscale-derp.nix
  152. +0 −17 overlays/default.nix
  153. +30 −0 pkgs/mpv-handler/package.nix
  154. +117 −0 pkgs/tailscale-derp.nix
  155. +77 −0 pkgs/tsukimi/package.nix
  156. +0 −51 programs/alacritty.nix
  157. +0 −36 programs/default.nix
  158. +0 −45 programs/fish.nix
  159. +0 −16 programs/git.nix
  160. +0 −21 programs/helix/default.nix
  161. +0 −35 programs/helix/keymaps.nix
  162. +0 −9 programs/helix/languages.nix
  163. +0 −10 programs/hyprland/default.nix
  164. +0 −166 programs/hyprland/hyprland.nix
  165. +0 −72 programs/kitty.nix
  166. +0 −66 programs/nvim/default.nix
  167. +0 −12 programs/ssh.nix
  168. +0 −114 programs/sway.nix
  169. +0 −25 programs/tmux.nix
  170. +0 −12 programs/waybar/default.nix
  171. +0 −118 programs/waybar/waybar.nix
  172. +0 −57 scripts/default.nix
  173. +0 −6 services/default.nix
  174. +0 −13 services/swayidle.nix
13 changes: 13 additions & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"image": "mcr.microsoft.com/devcontainers/base:alpine",
"features": {
"ghcr.io/devcontainers/features/sshd:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/nix:1": {
"multiUser": true,
"version": "latest",
"extraNixConfig": "extra-experimental-features = flakes nix-command"
}
}
}
23 changes: 23 additions & 0 deletions .github/workflows/blog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy Blog Pages

on:
push:

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install nix
uses: DeterminateSystems/nix-installer-action@main
- name: Build docs
run: |
nix build .#blog
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: result
6 changes: 3 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: nixbuild/nix-quick-install-action@v22
- uses: DeterminateSystems/nix-installer-action@main
with:
nix_conf: |
experimental-features = nix-command flakes
@@ -17,5 +17,5 @@ jobs:
- name: Nix Flake Show
run: nix flake show --all-systems

- name: Check whitefox
run: nix build .#nixosConfigurations.whitefox.config.system.build.toplevel
- name: Check Nix flake Nixpkgs inputs
uses: DeterminateSystems/flake-checker-action@main
2 changes: 1 addition & 1 deletion .github/workflows/ferrucyon.yml
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: nixbuild/nix-quick-install-action@v22
- uses: DeterminateSystems/nix-installer-action@main
with:
nix_conf: |
experimental-features = nix-command flakes
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blog/.hugo_build.lock
result
blog/public
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 ocfox

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
44 changes: 37 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,37 @@
# nixos-config

> *NixOS configuration with Simple directory structure (easy for copy)*
![image](https://user-images.githubusercontent.com/47410251/227114487-88f60d9e-56c1-4618-a2fc-a517122d41c6.png)

- [NixOS-CN-telegram](https://github.com/nixos-cn/NixOS-CN-telegram)
```
den
├───devShells
│ ├───aarch64-darwin
│ │ └───blog: development environment 'nix-shell'
│ ├───aarch64-linux
│ │ └───blog: development environment 'nix-shell'
│ └───x86_64-linux
│ └───blog: development environment 'nix-shell'
├───ferrucyon: unknown
├───nixosConfigurations
│ ├───arcticfox: NixOS configuration
│ ├───civet: NixOS configuration
│ ├───redfox: NixOS configuration
│ ├───vulpes: NixOS configuration
│ └───whitefox: NixOS configuration
├───nixosModules
│ └───default: NixOS module
├───overlays
│ └───default: Nixpkgs overlay
└───packages
├───aarch64-darwin
│ ├───blog: package 'blog-20240930'
│ ├───mpv-handler: package 'mpv-handler-0.3.12'
│ ├───smartdns: package 'smartdns-rs-0.8.7'
│ └───tsukimi: package 'tsukimi-0.12.2'
├───aarch64-linux
│ ├───blog: package 'blog-20240930'
│ ├───mpv-handler: package 'mpv-handler-0.3.12'
│ ├───smartdns: package 'smartdns-rs-0.8.7'
│ └───tsukimi: package 'tsukimi-0.12.2'
└───x86_64-linux
├───blog: package 'blog-20240930'
├───mpv-handler: package 'mpv-handler-0.3.12'
├───smartdns: package 'smartdns-rs-0.8.7'
└───tsukimi: package 'tsukimi-0.12.2'
```
6 changes: 6 additions & 0 deletions blog/content/archives.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "Archive"
layout: "archives"
# url: "/archives"
summary: "archives"
---
5 changes: 5 additions & 0 deletions blog/content/archives.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "Archive"
layout: "archives"
summary: "archives"
---
142 changes: 142 additions & 0 deletions blog/content/posts/css-learn-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
---
title: "CSS Learning Notes Chapter I"
date: "2024-06-01"
cover:
image: https://s2.loli.net/2024/06/01/PUCEYgaOnefo9rt.png
caption: "https://nixos.ocfox.me"
tags: ["javascript", "html", "notes"]
---

Try to make a nixos boot animation. (log scroll on screen.)

The repo link: https://github.com/ocfox/booti . This site has none imported js or css library.

First need make a animation let text display line by line.
So I tried to set a delay for every line, when open page hide (don't display) every paragraph in css.
```css
p {
display: none; /* Initially hide all paragraphs */
margin: 1px 0 0 1px;
}
```
Then set a delay increase by degrees for every single line with js. Use `EventListener` get every
paragraph element, and set 500ms * (current lines) delay make it `display` `none` -> `block`.
So them will display right.
```js
document.addEventListener("DOMContentLoaded", function() {
const paragraphs = document.querySelectorAll('p');
let delay = 500;

paragraphs.forEach((p, i) => {
setTimeout(() => {
p.style.display = 'block';
}, i * delay);
});
});
```
A basic Terminal like page css.
```css
body {
background: #000; /* Black background */
padding-top: 10px;
color: white;
font-family: "Terminus", monospace;
font-size: 15px;
}
```
And every 'OK' should be green. so use script replace them class and css to change it color.
```js
paragraphs.forEach(p => {
p.innerHTML = p.innerHTML.replace(/OK/g, '<span class="green">OK</span>');
});
```
```css
.green {
color: green;
}
```
Now need a auto scroll, make sure it looks like real boot log.
Just let it scroll to bottom when every line display.
```js
paragraphs.forEach((p, i) => {
window.scrollTo(0, document.body.scrollHeight); // Scroll to the bottom of the page
setTimeout(() => {
p.style.display = 'block';
}, i * delay);
});
```
Last, replece 500ms to random delay. Now I need a blink cursor '_'.
The blink is not animation, and the visibility switch, so it will like
machanical switch.
```html
<span class="blink">_</span>
```
```css
.blink {
animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
50% {
visibility: hidden;
}
}
```
And a input box, I add a empty element as placeholder.
```html
<span id="input-placeholder"></span><span class="blink">_</span>
```

```css
input.dynamic-width {
background: transparent;
color: white;
border: none; /* Set border none to hide that highlit boader */
font-family: "Terminus", monospace;
font-size: 15px;
outline: none;
caret-color: transparent;
margin: 0;
padding: 0;
position: relative;
right: -10px; /* hacky way to move text to right, but not good way */
}
```

```js
setTimeout(() => {
const input = document.createElement('input');
input.type = 'text';
input.classList.add('dynamic-width');
const placeholder = document.querySelector('#input-placeholder');
placeholder.replaceWith(input);

// Adjust input width dynamically based on content
input.addEventListener('input', () => {
input.style.width = ((input.value.length + 1) * 1) + 'ch';
});

input.focus();

function typeText(element, text, delay) {
let index = 0;
function addCharacter() {
if (index < text.length) {
element.value += text[index];
element.style.width = ((element.value.length + 1) * 1) + 'ch';
index++;
setTimeout(addCharacter, delay);
}
}
addCharacter();
}

input.focus();
typeText(input, 'hello', 200);

document.addEventListener('click', () => {
input.focus();
});
}, cumulativeDelay + 200);
```
This part a little long, but it simple. Today will poweroff soon. Tomorrow fill it.
29 changes: 29 additions & 0 deletions blog/content/posts/dont-care-future.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: "Don't worry about future"
date: "2024-12-04"
tags: ["life"]
---

Excessive worry about the future drops me into a cycle of anxiety.
When I moved to the next station, these emotions stuck in my feet like a quagmire.

### Don't Worry

There's no need to worry about what you will fucked up.
Even if it happens, look forward, nothing will change if you pay for that.

The Forest, where I am. I want to follow pure instinct like a tiger, a dog, or even an ant.
Eating when hungry, drinking when thirsty, enjoying music, enjoying the fresh air, paying attention to things around self.
Anyway, don't tie up hands by life.


Think back to the past, the things that make you sad and regret. It may be trivial, but it was unbearable at the time.


These words are written for me, don't copy on 'you', it's dangerous.
I'm trying to escape(hug) the world, I want fuck this world, fuck everything that makes me anxious.

It's a negative attitude in the eyes of the common man.
But not, I'm enjoying it(every fucked thing) instead of escaping them.

I will do it because I want to if that will get me into trouble, come on, I don't fucking care.
74 changes: 74 additions & 0 deletions blog/content/posts/dual-boot-bluetooth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---
title: "Bluetooth Pairing on Dual Boot"
date: "2022-11-23"
tags: ["bluetooth"]
summary: "Edit pairing keys on Windows and Linux, make they are consistent"
---

## Dual Boot Bluetooth

When pair your device, Bluetooth service generates a unique set of pairing keys.
So twice pair will generate two differen keys.
Simplely synchronizing two pairing keys can solve it.

## Sync pairing keys

- Pair device once on Windows and Linux.
- Mount Windows system partition on Linux.
- Use [chntpw](http://pogostick.net/~pnh/ntpasswd/) to change the pairing key in Windows.

Get the pairing key
```fish
cat /var/lib/bluetooth/<current_computer_bluetooth_mac>/<device_mac>/info
...
[LinkKey]
key=YOURDEVICEPAIRINGKEY
...
```

```
chntpw -e WIN_PATH/Windows/System32/config/SYSTEM
> l
Node has 17 subkeys and 0 values
key name
<ActivationBroker>
<ControlSet001>
<DriverDatabase>
<HardwareConfig>
<Input>
...
```
Replace ControlSetXXX with the value of your system.
```
cd ControlSet001\Services\BTHPORT\Parameters\Keys
```

```
(...)\Services\BTHPORT\Parameters\Keys> l
Node has 2 subkeys and 0 values
key name
<144f8a...>
<35d48b...>
```
Edit Windows pairing key

```
> cd <computer_bluetooth_mac>
> l
(...)\BTHPORT\Parameters\Keys\<computer_bluetooth_mac> > l
Node has 0 subkeys and 1 values
size type value name [value if type DWORD]
16 3 REG_BINARY <25f3e8ad4ce5>
16 3 REG_BINARY <device_mac>
```
Don't forget add space
```
ed <device_mac>
.: 0 YO UR DE VI CE PA IR IN GK EY
.s
> q
```

Reboot, and now there is no need to pair again after each system switching.
Loading