(temporary) add marvin tracker

master
Yorick van Pelt 2023-09-23 15:52:49 +02:00
parent 7eafb75963
commit a72d2cdb64
Signed by: yorick
GPG Key ID: D8D3CC6D951384DE
2 changed files with 14 additions and 2 deletions

View File

@ -29,7 +29,7 @@ window#waybar {
border-bottom: 3px solid white;
}
#clock, #battery, #cpu, #memory, #network, #disk, #pulseaudio, #custom-spotify, #tray, #mode, #custom-cal {
#clock, #battery, #cpu, #memory, #network, #disk, #pulseaudio, #custom-spotify, #tray, #mode, #custom-cal, #custom-marvin {
padding: 0 10px;
margin: 0 5px;
}
@ -110,6 +110,11 @@ window#waybar {
background: #33b679;
}
#custom-marvin {
background: #5ec0bc;
color: white;
}
#tray {
background-color: #2980b9;
}

View File

@ -2,7 +2,7 @@ layer = "top"
height = 26
modules-left = [ "sway/workspaces", "sway/mode", "custom/spotify" ]
modules-center = [ "sway/window" ]
modules-right = [ "custom/cal", "pulseaudio", "network", "disk", "battery", "clock", "tray" ]
modules-right = [ "custom/marvin", "custom/cal", "pulseaudio", "network", "disk", "battery", "clock", "tray" ]
["sway/workspaces"]
all-outputs = false
@ -82,3 +82,10 @@ escape = true
max-length = 40
on-click = "playerctl play-pause"
exec = "$HOME/dotfiles/bin/spotify_meta.sh 2> /dev/null"
["custom/marvin"]
format = "{}"
escape = true
max-length = 40
exec = "/home/yorick/tmp/marvin-cli --public tracking --json | /home/yorick/.nix-profile/bin/jq -r .title"
interval = 120