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]]
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"