From c65fd03c97d362a333a24a910fcfc59e83189e4c Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Sun, 6 Jul 2025 14:51:58 +0200 Subject: [PATCH] Modules/Rmpc: Set colors for log levels --- home/modules/rmpc/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/home/modules/rmpc/default.nix b/home/modules/rmpc/default.nix index a3d03f31..3c7ed19d 100644 --- a/home/modules/rmpc/default.nix +++ b/home/modules/rmpc/default.nix @@ -28,6 +28,8 @@ in { home.file = let themeName = "chriphost"; in { + # TODO: notify-send song title or sth. + # TODO: status bar colors (the thing that pops up in the progress/seeking bar sometimes) ".config/rmpc/config.ron".text = '' #![enable(implicit_some)] #![enable(unwrap_newtypes)] @@ -37,7 +39,7 @@ in { password: None, theme: "${themeName}", cache_dir: None, - on_song_change: None, // TODO: notify-send song title or sth. + on_song_change: None, volume_step: 5, max_fps: 30, scrolloff: 0, @@ -325,12 +327,13 @@ in { playlist_style: None, ), + // The stuff shown in the status bar (on the progress bar) level_styles: ( - info: (fg: "blue", bg: "black"), - warn: (fg: "yellow", bg: "black"), - error: (fg: "red", bg: "black"), - debug: (fg: "light_green", bg: "black"), - trace: (fg: "magenta", bg: "black"), + info: (fg: "#${accent}", bg: "#${surface}"), + warn: (fg: "#${dark.yellow}", bg: "#${surface}"), + error: (fg: "#${dark.red}", bg: "#${surface}"), + debug: (fg: "#${dark.green}", bg: "#${surface}"), + trace: (fg: "#${dark.mauve}", bg: "#${surface}"), ), progress_bar: ( @@ -482,6 +485,7 @@ in { style: (fg: "#${text}") ) ], + center: [ ( kind: Property(Song(Artist)), @@ -504,6 +508,7 @@ in { ) ) ], + right: [ // ( // kind: Property(Widget(States(