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:
parent
a2d9828287
commit
ab4c5dc96f
|
@ -100,13 +100,13 @@ programs.nixvim.keymaps = [
|
||||||
# move selected line up or down
|
# move selected line up or down
|
||||||
{
|
{
|
||||||
mode = ["v"];
|
mode = ["v"];
|
||||||
key = "J";
|
key = "<C-d>";
|
||||||
action = ":m '>+1<CR>gv=gv";
|
action = ":m '>+1<CR>gv=gv";
|
||||||
options = {noremap = true;};
|
options = {noremap = true;};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = ["v"];
|
mode = ["v"];
|
||||||
key = "K";
|
key = "<C-u>";
|
||||||
action = ":m '<-2<CR>gv=gv";
|
action = ":m '<-2<CR>gv=gv";
|
||||||
options = {noremap = true;};
|
options = {noremap = true;};
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,16 +113,16 @@ in {
|
||||||
pkgs.lm_sensors
|
pkgs.lm_sensors
|
||||||
];
|
];
|
||||||
|
|
||||||
# services.tlp = {
|
services.tlp = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# settings = {
|
settings = {
|
||||||
# CPU_SCALING_GOVERNOR_ON_AC = "ondemand";
|
CPU_SCALING_GOVERNOR_ON_AC = "ondemand";
|
||||||
# CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||||
#
|
|
||||||
# START_CHARGE_THRESH_BAT0 = 50;
|
START_CHARGE_THRESH_BAT0 = 60;
|
||||||
# STOP_CHARGE_THRESH_BAT0 = 95;
|
STOP_CHARGE_THRESH_BAT0 = 85;
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
bluetooth = {
|
bluetooth = {
|
||||||
|
|
Loading…
Reference in New Issue