diff --git a/home-manager/waybar.css b/home-manager/waybar.css index fa0da01..d2a9ba9 100644 --- a/home-manager/waybar.css +++ b/home-manager/waybar.css @@ -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; } diff --git a/home-manager/waybar.toml b/home-manager/waybar.toml index 182780d..2baade7 100644 --- a/home-manager/waybar.toml +++ b/home-manager/waybar.toml @@ -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