1
0
forked from extern/nix-config

overlays(waybar): Use latest commit

Adds support for https://github.com/Alexays/Waybar/issues/2211
This commit is contained in:
Donovan Glover 2023-06-20 14:50:03 -04:00
parent ac801ad5bf
commit da70c0293b
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,7 +1,16 @@
{
nixpkgs.overlays = [
(final: prev: {
waybar = prev.waybar.overrideAttrs (old: {
waybar = prev.waybar.overrideAttrs (old: rec {
version = "b0f89f2bc115f4447dbf4565faca9a6122594d68";
src = final.fetchFromGitHub {
owner = "Alexays";
repo = "Waybar";
rev = version;
sha256 = "sha256-wH8UvSYnEBCdF2r6yAtocVuaZM9eIXLlg31n9FKTISE=";
};
postPatch = /* bash */ ''
# use hyprctl to switch workspaces
sed -i 's/zext_workspace_handle_v1_activate(workspace_handle_);/const std::string command = "hyprctl dispatch workspace e+1";\n\tsystem(command.c_str());/g' src/modules/wlr/workspace_manager.cpp