From 72e45f5fdf481bb80bf6eb85e12e6e51dafa43c1 Mon Sep 17 00:00:00 2001 From: joy Date: Wed, 9 Oct 2024 21:27:13 +0200 Subject: [PATCH] cmus --- flake.lock | 6 +-- modules/apps/home/cmus/default.nix | 62 ++++++++++++++++++++++++++++++ modules/apps/home/default.nix | 1 + modules/apps/norm/misc/default.nix | 1 + 4 files changed, 67 insertions(+), 3 deletions(-) create mode 100644 modules/apps/home/cmus/default.nix diff --git a/flake.lock b/flake.lock index 2c63213..f2829ec 100644 --- a/flake.lock +++ b/flake.lock @@ -202,11 +202,11 @@ ] }, "locked": { - "lastModified": 1728496578, - "narHash": "sha256-uwiSN3BdC3/5pFfbyFqwU/ntj+8lWofrPC64sssHl4k=", + "lastModified": 1728501535, + "narHash": "sha256-iJSJXkjFZXDuMZNUvJ76HXRQirD04e+qKiBXfsFnpAk=", "owner": "joygnu", "repo": "home-manager", - "rev": "da950ac376f2fd4f1e28aae3a55451969ec19ed9", + "rev": "0825c4646b2d7f97c47e3878c676a84a5ca1f753", "type": "github" }, "original": { diff --git a/modules/apps/home/cmus/default.nix b/modules/apps/home/cmus/default.nix new file mode 100644 index 0000000..1319264 --- /dev/null +++ b/modules/apps/home/cmus/default.nix @@ -0,0 +1,62 @@ +{ + programs.cmus = { + enable = true; + extraConfig = '' + colorscheme gruvbox + ''; + theme = { + name = "gruvbox"; + text = '' + # colors from gruvbox: https://github.com/morhetz/gruvbox + # default text color + set color_win_fg=default + + # overall background color + set color_win_bg=default + + # command-line colors + set color_cmdline_bg=default + set color_cmdline_fg=default + set color_error=124 + set color_info=172 + set color_separator=246 + + # bottom status line + set color_statusline_bg=237 + set color_statusline_fg=72 + + # bottom title line + set color_titleline_bg=236 + set color_titleline_fg=142 + + # top title area + set color_win_title_bg=246 + set color_win_title_fg=235 + ##### playing file colors ###################################################### + # unselected currently playing track's text + set color_win_cur=175 + + # active selection for currently playing track + set color_win_cur_sel_bg=237 + set color_win_cur_sel_fg=175 + + # inactive selection for currently playing track + set color_win_inactive_cur_sel_bg=236 + set color_win_inactive_cur_sel_fg=175 + + ##### non-playing file colors ################################################## + # active selection + set color_win_sel_bg=237 + set color_win_sel_fg=229 + + # inactive selection + set color_win_inactive_sel_bg=236 + set color_win_inactive_sel_fg=229 + + ##### file browser view colors ################################################# + # directory listing color + set color_win_dir=229 + ''; + }; + }; +} diff --git a/modules/apps/home/default.nix b/modules/apps/home/default.nix index 7976dc7..af5aa0d 100644 --- a/modules/apps/home/default.nix +++ b/modules/apps/home/default.nix @@ -10,5 +10,6 @@ ./zsh ./zoxide ./bat + ./cmus ]; } diff --git a/modules/apps/norm/misc/default.nix b/modules/apps/norm/misc/default.nix index 7cd70a8..85dccab 100644 --- a/modules/apps/norm/misc/default.nix +++ b/modules/apps/norm/misc/default.nix @@ -27,6 +27,7 @@ zip unzip yt-dlp + wget #gui imv keepassxc