waybar: Implement stopgap measure for waybar mpd
This commit is contained in:
parent
632b712ee7
commit
40de497a6a
|
@ -128,6 +128,9 @@ in
|
||||||
interval = 2;
|
interval = 2;
|
||||||
tooltip-format = "MPD (connected)";
|
tooltip-format = "MPD (connected)";
|
||||||
tooltip-format-disconnected = "MPD (disconnected)";
|
tooltip-format-disconnected = "MPD (disconnected)";
|
||||||
|
# FIXME remove this once waybar fixes the regression (https://github.com/Alexays/Waybar/issues/1778)
|
||||||
|
on-click = "${pkgs.mpc_cli}/bin/mpc -q -h ${config.services.mpd.network.listenAddress} toggle";
|
||||||
|
on-click-right = "${pkgs.mpc_cli}/bin/mpc -q -h ${config.services.mpd.network.listenAddress} stop";
|
||||||
on-scroll-up = "${pkgs.mpc_cli}/bin/mpc -q -h ${config.services.mpd.network.listenAddress} volume +2";
|
on-scroll-up = "${pkgs.mpc_cli}/bin/mpc -q -h ${config.services.mpd.network.listenAddress} volume +2";
|
||||||
on-scroll-down = "${pkgs.mpc_cli}/bin/mpc -q -h ${config.services.mpd.network.listenAddress} volume -2";
|
on-scroll-down = "${pkgs.mpc_cli}/bin/mpc -q -h ${config.services.mpd.network.listenAddress} volume -2";
|
||||||
title-len = 48;
|
title-len = 48;
|
||||||
|
@ -307,8 +310,7 @@ in
|
||||||
Service = {
|
Service = {
|
||||||
# ensure sway is already started, otherwise workspaces will not work
|
# ensure sway is already started, otherwise workspaces will not work
|
||||||
ExecStartPre = "${config.wayland.windowManager.sway.package}/bin/swaymsg";
|
ExecStartPre = "${config.wayland.windowManager.sway.package}/bin/swaymsg";
|
||||||
# FIXME: use new version (currently mpd widget does not toggle playback)
|
ExecStart = "${pkgs.waybar}/bin/waybar";
|
||||||
ExecStart = "${pkgs._2205.waybar}/bin/waybar";
|
|
||||||
ExecReload = "${pkgs.utillinux}/bin/kill -SIGUSR2 $MAINPID";
|
ExecReload = "${pkgs.utillinux}/bin/kill -SIGUSR2 $MAINPID";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = "1s";
|
RestartSec = "1s";
|
||||||
|
|
Loading…
Reference in a new issue