fix preconditions for xorg

This commit is contained in:
Chris Titus 2024-08-29 15:50:34 -05:00
parent 835b4c3250
commit 10d5010ed2

View File

@ -18,11 +18,12 @@ name = "Monitor Control"
[[data.preconditions]] [[data.preconditions]]
matches = true matches = true
data = { environment = "XDG_SESSION_TYPE" } data = { environment = "XDG_SESSION_TYPE" }
values = ["x11"] values = ["x11", "X11", "xorg", "Xorg", "tty"]
[[data.entries]] [[data.preconditions]]
name = "Set Resolution" matches = true
script = "monitor-control/set_resolutions.sh" data = { environment = "DISPLAY" }
values = [":0", ":1", ":2", ":3", ":4", ":5", ":6", ":7", ":8", ":9"]
[[data.entries]] [[data.entries]]
name = "Set Resolution" name = "Set Resolution"