From 2c27bde91a078166cd236d7e8fe1fd2a9f688955 Mon Sep 17 00:00:00 2001 From: deadvey Date: Sun, 8 Dec 2024 13:21:19 +0000 Subject: [PATCH] 2024-12-08 13:21 : id 263 --- home-manager/home.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/home-manager/home.nix b/home-manager/home.nix index b3b455d..c7ed9d3 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -301,8 +301,8 @@ in height = 20; width = SCREEN_WIDTH - 10; modules-left = [ "network" ]; - modules-right = [ "custom/weather" ]; - modules-center = []; + modules-right = [ "custom/name" ]; + modules-center = ["custom/weather"]; "network" = { interface = "enp42s0"; interval = 10; @@ -316,7 +316,11 @@ in interval = 3600; exec = "wttrbar --ampm"; return-type = "json"; - }; + }; + "custom/name" = { + exec = "ssh max@debian cat /var/www/html/music/data.js | sed -n \"s/.*name = '\([^']*\)'.*/\1/p\""; + format = "Listening to: {}"; + }; }; }; style = '' @@ -368,7 +372,10 @@ in #custom-weather, #custom-browser, #custom-terminal, - #disk { + #disk, + #memory, + #cpu, + #custom-website { color: #${FG}; background: transparent; border: ${BORDER_WIDTH}px solid #${ACCENT};