diff options
Diffstat (limited to 'store')
-rw-r--r-- | store/config/etc/fonts/local.conf | 60 | ||||
-rw-r--r-- | store/config/home/bashrc | 7 | ||||
-rw-r--r-- | store/config/mihomo/config.yaml | 85 | ||||
-rw-r--r-- | store/config/mihomo/need-rule | 4 | ||||
-rw-r--r-- | store/config/nvim/lua/setup/init.lua | 2 | ||||
-rw-r--r-- | store/config/nvim/lua/setup/lsp.lua | 2 | ||||
-rw-r--r-- | store/config/nvim/lua/setup/plugins/lint.lua | 2 | ||||
-rw-r--r-- | store/config/nvim/lua/setup/win.lua | 1 |
8 files changed, 116 insertions, 47 deletions
diff --git a/store/config/etc/fonts/local.conf b/store/config/etc/fonts/local.conf new file mode 100644 index 0000000..a8dbe2b --- /dev/null +++ b/store/config/etc/fonts/local.conf @@ -0,0 +1,60 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd"> +<fontconfig> + + <alias> + <family>sans-serif</family> + <prefer> + <family>MiSans</family> + </prefer> + </alias> + + <alias> + <family>serif</family> + <prefer> + <family>MiSans</family> + </prefer> + </alias> + + <alias> + <family>monospace</family> + <prefer> + <family>Maple Mono</family> + </prefer> + </alias> + + <alias> + <family>MiSans</family> + <prefer> + <family>MiSans</family> + <family>Noto Color Emoji</family> + </prefer> + </alias> + + <alias> + <family>Maple Mono</family> + <prefer> + <family>Maple Mono</family> + <family>Maple Mono NF</family> + <family>Maple Mono NF CN</family> + <family>Noto Color Emoji</family> + </prefer> + </alias> + + <alias> + <family>Noto Sans</family> + <prefer> + <family>Noto Sans</family> + <family>Noto Sans CJK SC</family> + </prefer> + </alias> + + <alias> + <family>Noto Serif</family> + <prefer> + <family>Noto Serif</family> + <family>Noto Serif CJK SC</family> + </prefer> + </alias> + +</fontconfig>
\ No newline at end of file diff --git a/store/config/home/bashrc b/store/config/home/bashrc index 1ab3b08..e59b2a4 100644 --- a/store/config/home/bashrc +++ b/store/config/home/bashrc @@ -1,8 +1,13 @@ set-proxy() { + export http_proxy="http://127.0.0.1:7897" + export https_proxy="http://127.0.0.1:7897" export HTTP_PROXY="http://127.0.0.1:7897" export HTTPS_PROXY="http://127.0.0.1:7897" } unset-proxy() { - unset HTTP_PROXY HTTPS_PROXY + unset http_proxy + unset https_proxy + unset HTTP_PROXY + unset HTTPS_PROXY } diff --git a/store/config/mihomo/config.yaml b/store/config/mihomo/config.yaml index cd2c3a3..c455409 100644 --- a/store/config/mihomo/config.yaml +++ b/store/config/mihomo/config.yaml @@ -26,56 +26,61 @@ dns: ipv6: true default-nameserver: - 223.5.5.5 + - 119.29.29.29 nameserver: +# - 9.9.9.11 +# - tls://1.1.1.1 + - https://doh.pub/dns-query - https://dns.alidns.com/dns-query - 223.5.5.5 - - 8.8.8.8 - - 1.1.1.1 + - 119.29.29.29 + +sniffer: + enable: true + sniff: + HTTP: + ports: [80] + TLS: + ports: [443] + QUIC: + ports: [443] + skip-domain: + - "Mijia Cloud" + +rule-providers: + cn: + type: file + path: has-rule + behavior: classical + format: text + + non-cn: + type: file + path: not-has-rule + behavior: classical + format: text + + need: + type: file + path: need-rule + behavior: classical + format: text rules: - - GEOSITE,github,node-select - - GEOSITE,google,node-select - - GEOSITE,youtube,node-select - - GEOSITE,twitter,node-select - - GEOSITE,facebook,node-select - - GEOSITE,discord,node-select - - GEOSITE,reddit,node-select - - GEOSITE,twitch,node-select - - GEOSITE,quora,node-select - - GEOSITE,telegram,node-select - - GEOSITE,imgur,node-select - - GEOSITE,stackexchange,node-select - - GEOSITE,onedrive,node-select - - GEOSITE,duckduckgo,node-select - - GEOSITE,wikimedia,node-select - - GEOSITE,gitbook,node-select - - GEOSITE,gitlab,node-select - - GEOSITE,creativecommons,node-select - - GEOSITE,archive,node-select - - GEOSITE,matrix,node-select - - GEOSITE,tor,node-select - - GEOSITE,python,node-select - - GEOSITE,ruby,node-select - - GEOSITE,rust,node-select - - GEOSITE,nodejs,node-select - - GEOSITE,npmjs,node-select - - GEOSITE,qt,node-select - - GEOSITE,docker,node-select - - GEOSITE,v2ray,node-select - - GEOSITE,homebrew,node-select - - GEOSITE,bootstrap,node-select - - GEOSITE,heroku,node-select - - GEOSITE,vercel,node-select - - GEOSITE,ieee,node-select - - GEOSITE,sci-hub,node-select - - GEOSITE,libgen,node-select + - RULE-SET,cn,DIRECT + - RULE-SET,non-cn,node-select + - RULE-SET,need,node-select +# - NOT,((GEOIP,CN)),node-select - DOMAIN-SUFFIX,gnu.org,node-select - DOMAIN-SUFFIX,nongnu.org,node-select - DOMAIN-SUFFIX,ietf.org,node-select - - DOMAIN-SUFFIX,packagist.org,node-select - DOMAIN-SUFFIX,metacubex.one,node-select - DOMAIN-SUFFIX,winehq.org,node-select - - DOMAIN-SUFFIX,postfix.org,node-select + - DOMAIN-SUFFIX,freedesktop.org,node-select + - DOMAIN-SUFFIX,eff.org,node-select + - DOMAIN-SUFFIX,typescriptlang.org,node-select + - DOMAIN-SUFFIX,arxiv.org,node-select +# - MATCH,node-select - MATCH,DIRECT proxy-groups: diff --git a/store/config/mihomo/need-rule b/store/config/mihomo/need-rule new file mode 100644 index 0000000..b785f0f --- /dev/null +++ b/store/config/mihomo/need-rule @@ -0,0 +1,4 @@ +IP-CIDR,185.199.108.153/32,node-select +IP-CIDR,185.199.109.153/32,node-select +IP-CIDR,185.199.110.153/32,node-select +IP-CIDR,185.199.111.153/32,node-select
\ No newline at end of file diff --git a/store/config/nvim/lua/setup/init.lua b/store/config/nvim/lua/setup/init.lua index ec8c8d4..bbce01c 100644 --- a/store/config/nvim/lua/setup/init.lua +++ b/store/config/nvim/lua/setup/init.lua @@ -1,5 +1,3 @@ --- spellchecker: words termguicolors - local function close_float() local wins = vim.api.nvim_list_wins() for _, v in ipairs(wins) do diff --git a/store/config/nvim/lua/setup/lsp.lua b/store/config/nvim/lua/setup/lsp.lua index a11ad34..6a58759 100644 --- a/store/config/nvim/lua/setup/lsp.lua +++ b/store/config/nvim/lua/setup/lsp.lua @@ -1,5 +1,3 @@ --- spellchecker: words denols luals - vim.lsp.config("*", { capabilities = vim.tbl_extend("force", vim.lsp.protocol.make_client_capabilities(), diff --git a/store/config/nvim/lua/setup/plugins/lint.lua b/store/config/nvim/lua/setup/plugins/lint.lua index b33db22..d03f539 100644 --- a/store/config/nvim/lua/setup/plugins/lint.lua +++ b/store/config/nvim/lua/setup/plugins/lint.lua @@ -1,4 +1,4 @@ ---- spellchecker: words markdownlintrc +--- spellchecker: ignore markdownlintrc ---@alias CruLinter { name: string, config_patterns: string[], filetypes: string[] | nil, fast: boolean } diff --git a/store/config/nvim/lua/setup/win.lua b/store/config/nvim/lua/setup/win.lua index 90e168a..9aa979d 100644 --- a/store/config/nvim/lua/setup/win.lua +++ b/store/config/nvim/lua/setup/win.lua @@ -1,4 +1,3 @@ --- spellchecker: words pwsh -- spellchecker: ignore shellcmdflag shellredir shellpipe shellquote shellxquote local function setup() vim.cmd([[ |