From 82df8dcc248d8c72adaf3be3b7d33b2de2097bd5 Mon Sep 17 00:00:00 2001 From: Uyanide Date: Sun, 31 Aug 2025 19:25:32 +0200 Subject: [PATCH] minor --- .memo/legion-conservation-mode | 10 ++++++++++ fish/post.d/fetch.fish | 4 +++- fish/post.d/fetch.fish.template | 4 +++- hypr/hyprland/general.conf | 8 +++++++- hypr/hyprland/monitors.conf | 10 +++++----- nvim/lazyvim.json | 2 -- 6 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 .memo/legion-conservation-mode diff --git a/.memo/legion-conservation-mode b/.memo/legion-conservation-mode new file mode 100644 index 0000000..519e803 --- /dev/null +++ b/.memo/legion-conservation-mode @@ -0,0 +1,10 @@ +即充电只充到 80% 的模式: + +echo 1 > /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode + +(写入 0 即为关闭) +(具体文件路径因设备而异,也不知道同一设备路径会不会变化,改之前最好确认一下) + +某次拆机后突然被自动关闭了,以防以后发生类似的事情不知道上哪里设置,遂记录于此。 + + diff --git a/fish/post.d/fetch.fish b/fish/post.d/fetch.fish index d69c067..63c9f1e 100644 --- a/fish/post.d/fetch.fish +++ b/fish/post.d/fetch.fish @@ -2,7 +2,9 @@ if not set -q fetch_logo_type set -g fetch_logo_type "auto" end -set -g fetch_color "#f5c2e7" +if not set -q fetch_color + set -g fetch_color "#f5c2e7" +end if test "$fetch_logo_type" = "symbols" set -g fetch_args "--logo-type raw --logo-width 42 --logo \"$HOME/.config/fastfetch/logo_ros/42x.symbols\" --color \"$fetch_color\"" diff --git a/fish/post.d/fetch.fish.template b/fish/post.d/fetch.fish.template index 5bc1b42..8e82150 100644 --- a/fish/post.d/fetch.fish.template +++ b/fish/post.d/fetch.fish.template @@ -2,7 +2,9 @@ if not set -q fetch_logo_type set -g fetch_logo_type "auto" end -set -g fetch_color "#" +if not set -q fetch_color + set -g fetch_color "#" +end if test "$fetch_logo_type" = "symbols" set -g fetch_args "--logo-type raw --logo-width 42 --logo \"$HOME/.config/fastfetch/logo_ros/42x.symbols\" --color \"$fetch_color\"" diff --git a/hypr/hyprland/general.conf b/hypr/hyprland/general.conf index 2cad8bc..f4a776a 100755 --- a/hypr/hyprland/general.conf +++ b/hypr/hyprland/general.conf @@ -44,7 +44,7 @@ general { resize_on_border = true no_focus_fallback = true - layout = dwindle + layout = master #focus_to_other_workspaces = true # ahhhh i still haven't properly implemented this allow_tearing = true # This just allows the `immediate` window rule to work @@ -60,6 +60,12 @@ dwindle { smart_resizing = false } +master { + new_on_active = after + mfact = 0.6 + orientation = right +} + decoration { rounding = 14 diff --git a/hypr/hyprland/monitors.conf b/hypr/hyprland/monitors.conf index 7087064..818e11c 100644 --- a/hypr/hyprland/monitors.conf +++ b/hypr/hyprland/monitors.conf @@ -10,9 +10,9 @@ monitorv2 { scale = 1.25 bitdepth = 10 - # comment out following lines to disabled HDR - supports_wide_color = true - supports_hdr = true - cm = hdr - sdrbrightness = 1.4 + # # comment out following lines to disabled HDR + # supports_wide_color = true + # supports_hdr = true + # cm = hdr + # sdrbrightness = 1.4 } diff --git a/nvim/lazyvim.json b/nvim/lazyvim.json index b69d261..28d1e77 100755 --- a/nvim/lazyvim.json +++ b/nvim/lazyvim.json @@ -1,7 +1,5 @@ { "extras": [ - "lazyvim.plugins.extras.ai.copilot", - "lazyvim.plugins.extras.ai.copilot-chat", "lazyvim.plugins.extras.lang.clangd", "lazyvim.plugins.extras.lang.cmake", "lazyvim.plugins.extras.lang.git",