From 497b48e8520e4beac16a1a209551c3db46a6d917 Mon Sep 17 00:00:00 2001 From: ArchSav <96357545+ArchSav@users.noreply.github.com> Date: Wed, 6 May 2026 01:30:19 +1000 Subject: config: add device tags (#13728) --------- Co-authored-by: Mio Argillander --- hyprtester/src/tests/main/keybinds.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'hyprtester/src/tests/main/keybinds.cpp') diff --git a/hyprtester/src/tests/main/keybinds.cpp b/hyprtester/src/tests/main/keybinds.cpp index 567d078b..589d5bb5 100644 --- a/hyprtester/src/tests/main/keybinds.cpp +++ b/hyprtester/src/tests/main/keybinds.cpp @@ -547,6 +547,14 @@ SUBTEST(perDeviceKeybind) { EXPECT(attemptCheckFlag(20, 50), true); OK(getFromSocket(pluginKeybindCmd(false, 0, 29))); EXPECT(getFromSocket("/eval hl.unbind('SUPER + Y')"), "ok"); + + // Tags + EXPECT(checkFlag(), false); + EXPECT(getFromSocket("/eval hl.bind('SUPER + Y', hl.dsp.exec_cmd('touch " + flagFile + "'), { device = { inclusive = true, list = { 'test-tag' } } })"), "ok"); + OK(getFromSocket(pluginKeybindCmd(true, 7, 29))); + EXPECT(attemptCheckFlag(20, 50), true); + OK(getFromSocket(pluginKeybindCmd(false, 0, 29))); + EXPECT(getFromSocket("/eval hl.unbind('SUPER + Y')"), "ok"); } SUBTEST(unbind) { -- cgit v1.2.3