mirror of
https://git.sr.ht/~roxwize/.dotfiles
synced 2025-02-07 09:52:50 +00:00
~
This commit is contained in:
parent
f013ffb9b3
commit
3885fd9242
3 changed files with 22 additions and 3 deletions
|
@ -71,6 +71,7 @@
|
||||||
type "pipewire"
|
type "pipewire"
|
||||||
name "main"
|
name "main"
|
||||||
}
|
}
|
||||||
|
log_file "/tmp/mpd.log"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
mpdris2 = {
|
mpdris2 = {
|
||||||
|
|
|
@ -13,8 +13,27 @@
|
||||||
left = [
|
left = [
|
||||||
{
|
{
|
||||||
# https://codeberg.org/dnkl/yambar/issues/53#issuecomment-264088
|
# https://codeberg.org/dnkl/yambar/issues/53#issuecomment-264088
|
||||||
label = {
|
script = {
|
||||||
content.string.text = "god's in his heaven | all's right with the world";
|
#? or /run/current-system/sw/bin/playerctl
|
||||||
|
path = "${pkgs.playerctl}/bin/playerctl";
|
||||||
|
args = [
|
||||||
|
"--follow"
|
||||||
|
"metadata"
|
||||||
|
"--format"
|
||||||
|
''
|
||||||
|
status|string|{{status}}
|
||||||
|
artist|string|{{artist}}
|
||||||
|
title|string|{{title}}
|
||||||
|
''
|
||||||
|
];
|
||||||
|
content.map.conditions = {
|
||||||
|
"status == Playing" = {
|
||||||
|
string.text = "{artist} - {title}";
|
||||||
|
};
|
||||||
|
"status != Playing" = {
|
||||||
|
string.text = "god's in his heaven | all's right with the world";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
@ -57,7 +57,6 @@
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
};
|
};
|
||||||
mpd.enable = true; # Configured with home-manager
|
|
||||||
# CUPS printing
|
# CUPS printing
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
# misc
|
# misc
|
||||||
|
|
Loading…
Reference in a new issue