dot

NixOS dotfiles
git clone https://git.echoz.io/dot.git
Log | Files | Refs

commit 9e22f1df5a7c18e263f18af7a4a2c9eae7fe7afc
parent 672f63b1b9e905dfcfad95acb1f85c5b2923e005
Author: Chris <chris@echoz.io>
Date:   Sun, 12 Oct 2025 23:16:21 +0200

feat: add and configure htop and mpv

Diffstat:
Amodules/htop/default.nix | 20++++++++++++++++++++
Amodules/htop/keys.patch | 12++++++++++++
Amodules/mpv/default.nix | 15+++++++++++++++
3 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/modules/htop/default.nix b/modules/htop/default.nix @@ -0,0 +1,20 @@ +{ pkgs, ... }: +{ + programs.htop = { + enable = true; + + settings = { + hide_kernel_threads = true; + hide_userland_threads = true; + shadow_other_users = true; + highlight_base_name = true; + update_interval = 1; + show_cpu_frequency = true; + show_cpu_temperature = true; + }; + + package = pkgs.htop.overrideAttrs { + patches = [ ./keys.patch ]; + }; + }; +} diff --git a/modules/htop/keys.patch b/modules/htop/keys.patch @@ -0,0 +1,12 @@ +diff --git a/FunctionBar.c b/FunctionBar.c +index 08500373..481b4cb6 100644 +--- a/FunctionBar.c ++++ b/FunctionBar.c +@@ -18,7 +18,7 @@ in the source distribution for its full text. + #include "XUtils.h" + + +-static const char* const FunctionBar_FKeys[] = {"F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", NULL}; ++static const char* const FunctionBar_FKeys[] = {" h ", " S ", " / ", " \\ ", " t ", " < ", " ] ", " [ ", " k ", " q ", NULL}; + + static const char* const FunctionBar_FLabels[] = {" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", NULL}; diff --git a/modules/mpv/default.nix b/modules/mpv/default.nix @@ -0,0 +1,15 @@ +{ + pkgs, + + user, + ... +}: +{ + home-manager.users.${user}.programs.mpv = { + enable = true; + scripts = with pkgs.mpvScripts; [ + uosc + thumbfast + ]; + }; +}