From 10d5010ed28c51b205d7786fa26d300b2e487500 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Thu, 29 Aug 2024 15:50:34 -0500 Subject: [PATCH] fix preconditions for xorg --- src/commands/utils/tab_data.toml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/commands/utils/tab_data.toml b/src/commands/utils/tab_data.toml index 2e5e1283..209a4015 100644 --- a/src/commands/utils/tab_data.toml +++ b/src/commands/utils/tab_data.toml @@ -18,11 +18,12 @@ name = "Monitor Control" [[data.preconditions]] matches = true data = { environment = "XDG_SESSION_TYPE" } -values = ["x11"] +values = ["x11", "X11", "xorg", "Xorg", "tty"] -[[data.entries]] -name = "Set Resolution" -script = "monitor-control/set_resolutions.sh" +[[data.preconditions]] +matches = true +data = { environment = "DISPLAY" } +values = [":0", ":1", ":2", ":3", ":4", ":5", ":6", ":7", ":8", ":9"] [[data.entries]] name = "Set Resolution"