fix(waybar): use Lua dispatch build #172

Merged
alexion merged 1 commits from fix/waybar-lua-dispatch-source into main 2026-10-11 22:19:47 -04:00
2 changed files with 26 additions and 1 deletions

View File

@@ -233,7 +233,6 @@
position = "left"; position = "left";
order = 10; order = 10;
settings = { settings = {
on-click = "activate";
format = "{id} {windows}"; format = "{id} {windows}";
format-window-separator = " "; format-window-separator = " ";
window-rewrite-default = util.glyph "f2d0"; window-rewrite-default = util.glyph "f2d0";

View File

@@ -30,6 +30,32 @@ in
home-manager.users.${config.user.name}.programs.waybar = { home-manager.users.${config.user.name}.programs.waybar = {
enable = true; enable = true;
# Waybar 0.15.0 sends old Hyprland workspace dispatch commands.
# Use the fix commit until a release includes upstream PR #5013.
package = pkgs.waybar.overrideAttrs {
src = pkgs.fetchFromGitHub {
owner = "Alexays";
repo = "Waybar";
rev = "05945748dccce28bf96d26d8f64a9e69a8dd49ba";
hash = "sha256-51R3mIt8cLNvh/X5qe9vOqeJCj0U9KRyemVE5y+OhiU=";
};
postUnpack =
let
libcava = pkgs.fetchFromGitHub {
owner = "LukashonakV";
repo = "cava";
tag = "0.10.7";
hash = "sha256-zkyj1vBzHtoypX4Bxdh1Vmwh967DKKxN751v79hzmgQ=";
};
in
''
pushd "$sourceRoot"
cp -R --no-preserve=mode,ownership ${libcava} subprojects/cava-0.10.7
patchShebangs .
popd
'';
};
# A user service bound to graphical-session.target, which uwsm activates, # A user service bound to graphical-session.target, which uwsm activates,
# so the bar comes up with the session and no compositor exec-once. # so the bar comes up with the session and no compositor exec-once.