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
This commit is contained in:
Sam 2024-11-24 21:10:41 +00:00
parent a2d9828287
commit ab4c5dc96f
2 changed files with 12 additions and 12 deletions

View File

@ -100,13 +100,13 @@ programs.nixvim.keymaps = [
# move selected line up or down
{
mode = ["v"];
key = "J";
key = "<C-d>";
action = ":m '>+1<CR>gv=gv";
options = {noremap = true;};
}
{
mode = ["v"];
key = "K";
key = "<C-u>";
action = ":m '<-2<CR>gv=gv";
options = {noremap = true;};
}

View File

@ -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 = {