From ab4c5dc96f6f448d13802596dae55c96be9622d1 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 24 Nov 2024 21:10:41 +0000 Subject: [PATCH] Update NixVim keymaps and TLP battery thresholds - Modify NixVim keymaps for moving selected lines in visual mode - Enable and configure TLP service with updated battery charge thresholds - Adjust CPU scaling governors for both AC and battery power sources --- home/common/core/nixvim/keymaps.nix | 4 ++-- hosts/citadel/default.nix | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/home/common/core/nixvim/keymaps.nix b/home/common/core/nixvim/keymaps.nix index f405efa..d0f5654 100644 --- a/home/common/core/nixvim/keymaps.nix +++ b/home/common/core/nixvim/keymaps.nix @@ -100,13 +100,13 @@ programs.nixvim.keymaps = [ # move selected line up or down { mode = ["v"]; - key = "J"; + key = ""; action = ":m '>+1gv=gv"; options = {noremap = true;}; } { mode = ["v"]; - key = "K"; + key = ""; action = ":m '<-2gv=gv"; options = {noremap = true;}; } diff --git a/hosts/citadel/default.nix b/hosts/citadel/default.nix index 6a59938..3be691d 100644 --- a/hosts/citadel/default.nix +++ b/hosts/citadel/default.nix @@ -113,16 +113,16 @@ in { pkgs.lm_sensors ]; - # services.tlp = { - # enable = true; - # settings = { - # CPU_SCALING_GOVERNOR_ON_AC = "ondemand"; - # CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; - # - # START_CHARGE_THRESH_BAT0 = 50; - # STOP_CHARGE_THRESH_BAT0 = 95; - # }; - # }; + services.tlp = { + enable = true; + settings = { + CPU_SCALING_GOVERNOR_ON_AC = "ondemand"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + + START_CHARGE_THRESH_BAT0 = 60; + STOP_CHARGE_THRESH_BAT0 = 85; + }; + }; hardware = { bluetooth = {