Compare commits

..

3 Commits

Author SHA1 Message Date
Sam 07d19c4535 Remaps Alt_l arrow keys using hjkl 2024-07-21 16:23:47 +01:00
Sam 2ec9f2db77 Modify tlp settings 2024-07-21 16:23:35 +01:00
Sam 0e0e2b2ae7 Add back bind_to_address for mpd 2024-07-21 16:21:54 +01:00
2 changed files with 13 additions and 4 deletions

View File

@ -39,6 +39,7 @@
format "44100:16:2" format "44100:16:2"
} }
bind_to_address "127.0.0.1"
''; '';
musicDirectory = "~/mus/music_data"; musicDirectory = "~/mus/music_data";
}; };

View File

@ -74,13 +74,21 @@ in
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 = 80; START_CHARGE_THRESH_BAT0 = 50;
STOP_CHARGE_THRESH_BAT0 = 85; STOP_CHARGE_THRESH_BAT0 = 95;
USB_BLACKLIST_PHONE = 1;
}; };
}; };
# Remap Alt_L +[hjkl] to left down up right
services.xserver.displayManager.sessionCommands =
"${pkgs.xorg.xmodmap}/bin/xmodmap ${pkgs.writeText "xkb-layout" ''
keycode 64 = Mode_switch
keycode 43 = h H Left H
keycode 44 = j J Down J
keycode 45 = k K Up K
keycode 46 = l L Right L
''}";
hardware = { hardware = {
bluetooth = { bluetooth = {
enable = true; enable = true;