From 88154d34abdf7efdde97bd0b8aaee924a1c9cd60 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Thu, 12 Jan 2023 15:30:40 +0100 Subject: [PATCH] Headsetcontrol tweaks - Add headsetcontrol to services.udev.packages - Set battery check interval to 1 second --- home-manager/modules/polybar/default.nix | 2 +- users/erwin/work.nix | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/home-manager/modules/polybar/default.nix b/home-manager/modules/polybar/default.nix index 3d0e66f..815dcfc 100644 --- a/home-manager/modules/polybar/default.nix +++ b/home-manager/modules/polybar/default.nix @@ -249,7 +249,7 @@ in "module/headset-battery" = { type = "custom/script"; exec = "${headset-battery}"; - interval = 5; + interval = 1; format.prefix = " "; format.padding = 2; diff --git a/users/erwin/work.nix b/users/erwin/work.nix index d17270a..77f5bb7 100644 --- a/users/erwin/work.nix +++ b/users/erwin/work.nix @@ -96,7 +96,6 @@ in ffmpeg_5-full git gnome.nautilus - headsetcontrol icemon imagemagick iotop @@ -201,6 +200,14 @@ in services.teamviewer.enable = true; + environment.systemPackages = with pkgs; [ + headsetcontrol + ]; + + services.udev.packages = with pkgs; [ + headsetcontrol + ]; + services.xserver = { layout = "us,us"; xkbVariant = "colemak,";