From b5998cbfe9515350f939017bffc5db65c2f48c38 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Tue, 16 Jan 2024 13:03:50 +0800 Subject: [PATCH] nixos: sway: add patch: Tray D-Bus Menu --- nixos/profiles/common/core/packages/overlays/sway.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nixos/profiles/common/core/packages/overlays/sway.nix b/nixos/profiles/common/core/packages/overlays/sway.nix index b0799b6..dfdd240 100644 --- a/nixos/profiles/common/core/packages/overlays/sway.nix +++ b/nixos/profiles/common/core/packages/overlays/sway.nix @@ -1,5 +1,14 @@ {addPatches, ...}: _final: prev: { sway-unwrapped = addPatches prev.sway-unwrapped [ + # Tray D-Bus Menu + # https://github.com/swaywm/sway/pull/6249 + (prev.runCommand "2f304ef0532a45d00b2ec2c7fc63adef0aec7607.patch" {} '' + cat ${prev.fetchpatch { + url = "https://github.com/swaywm/sway/commit/2f304ef0532a45d00b2ec2c7fc63adef0aec7607.patch"; + hash = "sha256-nd+Z6A7GE5Go7QxXOI+hiLWQiXegsQatcNfxEsXgamI="; + }} | sed "s/int surface_x, surface_y, surface_width, surface_height;/int surface_x, surface_y, surface_width, surface_height = 0;/g" > $out + '') + # text_input: Implement input-method popups # https://github.com/swaywm/sway/pull/7226 (prev.fetchpatch {