mirror of
https://git.sr.ht/~roxwize/.dotfiles
synced 2025-01-30 22:53:37 +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"
|
||||
name "main"
|
||||
}
|
||||
log_file "/tmp/mpd.log"
|
||||
'';
|
||||
};
|
||||
mpdris2 = {
|
||||
|
|
|
@ -13,8 +13,27 @@
|
|||
left = [
|
||||
{
|
||||
# https://codeberg.org/dnkl/yambar/issues/53#issuecomment-264088
|
||||
label = {
|
||||
content.string.text = "god's in his heaven | all's right with the world";
|
||||
script = {
|
||||
#? 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;
|
||||
pulse.enable = true;
|
||||
};
|
||||
mpd.enable = true; # Configured with home-manager
|
||||
# CUPS printing
|
||||
printing.enable = true;
|
||||
# misc
|
||||
|
|
Loading…
Reference in a new issue