blob: 8fb286fb9391328c3613636a3ab2753d2e240b72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{ options, config, lib, pkgs, namespace, ... }:
with lib; with lib.${namespace}; let
cfg = config.${namespace}.apps.cmus;
in {
options.${namespace}.apps.cmus = with types; {
enable = mkEnableOption "cmus";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
cmus
];
xdg.desktopEntries.cmus = {
name = "cmus";
genericName = "Music Player";
exec = "${pkgs.kitty}/bin/kitty ${pkgs.cmus}/bin/cmus";
categories = [ "Music" "Player" "Audio" "ConsoleOnly" ];
};
xdg.configFile."cmus/rc".text = ''
set auto_expand_albums_follow=false
set pause_on_output_change=true
set repeat=true
set shuffle=tracks
fset unheard=play_count=0
factivate
set color_cmdline_attr=default
set color_cmdline_bg=default
set color_cmdline_fg=default
set color_cur_sel_attr=default
set color_error=231
set color_info=lightyellow
set color_separator=black
set color_statusline_attr=default
set color_statusline_bg=237
set color_statusline_fg=248
set color_titleline_attr=bold
set color_titleline_bg=239
set color_titleline_fg=default
set color_trackwin_album_attr=bold
set color_trackwin_album_bg=black
set color_trackwin_album_fg=default
set color_win_attr=default
set color_win_bg=default
set color_win_cur=231
set color_win_cur_attr=default
set color_win_cur_sel_attr=bold
set color_win_cur_sel_bg=231
set color_win_cur_sel_fg=black
set color_win_dir=lightblue
set color_win_fg=default
set color_win_inactive_cur_sel_attr=bold
set color_win_inactive_cur_sel_bg=237
set color_win_inactive_cur_sel_fg=231
set color_win_inactive_sel_attr=bold
set color_win_inactive_sel_bg=237
set color_win_inactive_sel_fg=default
set color_win_sel_attr=bold
set color_win_sel_bg=250
set color_win_sel_fg=black
set color_win_title_attr=bold
set color_win_title_bg=250
set color_win_title_fg=black
'';
};
}
|