feat: add mouse actions

Refs: 302185f6a873209ea51a26b314faa24c45cd03ac
This commit is contained in:
lightly-toasted 2025-08-11 11:45:21 +09:00
parent b88d00fe40
commit 45a49b1529
12 changed files with 186 additions and 6 deletions

View file

@ -6,7 +6,7 @@
position = "top";
height = 5;
output = "HDMI-A-1";
modules-left = [ ];
modules-left = [ "custom/mouse-actions" ];
modules-center = [ ];
modules-right = [
"pulseaudio"
@ -61,6 +61,15 @@
system = true;
user = false;
};
"custom/mouse-actions" = {
format = " {}";
exec = "tail -n 1 -F ~/.config/mouse-actions/state 2>/dev/null";
on-click = "run-mouse-action";
on-scroll-down = "cycle-mouse-action";
return-type = "text";
restart-interval = false;
};
}];
};
}