Skip to content

Commit 9de24b8

Browse files
committed
monitors: allow setting the resolution as a list
1 parent 13f9092 commit 9de24b8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pyprland/plugins/monitors.py

+2
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ def _build_monitor_command(self, monitor: MonitorInfo, config: dict[str, dict[st
119119
this_config = config.get(name, {})
120120
rate = this_config.get("rate", every_monitor[name]["refreshRate"])
121121
res = this_config.get("resolution", f"{every_monitor[name]['width']}x{every_monitor[name]['height']}")
122+
if isinstance(res, list):
123+
res = f"{res[0]}x{res[1]}"
122124
scale = this_config.get("scale", every_monitor[name]["scale"])
123125
position = f"{monitor['x']}x{monitor['y']}"
124126
transform = this_config.get("transform", every_monitor[name]["transform"])

pyprland/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Package version."""
22

3-
VERSION = "2.3.1-4"
3+
VERSION = "2.3.1-5"

0 commit comments

Comments
 (0)