sway | add toggle to toggle-sink

This commit is contained in:
Don Harper 2025-01-15 21:47:51 -06:00
parent fc6fa24832
commit 0884aacdfc

View file

@ -27,9 +27,9 @@
modules-left = modules-left =
[ "sway/workspaces" "sway/mode" "wlr/workspaces" "custom/mycal" ]; [ "sway/workspaces" "sway/mode" "wlr/workspaces" "custom/mycal" ];
modules-center = [ ]; modules-center = [ ];
# modules-right = ["idle_inhibitor" "custom/mytimew" "pulseaudio" "custom/mymusic" "bluetooth" "network" "backlight" "battery" "battery#bat2" "tray" "custom/mycal" "clock"];
modules-right = [ modules-right = [
"idle_inhibitor" "idle_inhibitor"
"custom/toggle-sink"
"custom/weather" "custom/weather"
"custom/mytimew" "custom/mytimew"
"pulseaudio" "pulseaudio"
@ -64,6 +64,10 @@
interval = 300; interval = 300;
return-type = "json"; return-type = "json";
}; };
"custom/toggle-sink" = {
format = "sink";
on-click = "~/bin/toggle-sink";
};
"custom/mytimew" = { "custom/mytimew" = {
exec = "~/bin/timebar"; exec = "~/bin/timebar";
interval = 30; interval = 30;