aboutsummaryrefslogtreecommitdiff
path: root/src/ipc/client.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-04-15 22:29:25 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-04-15 22:29:25 +0400
commitc40de5364d5ff560c53a1faa00e138001efa6726 (patch)
tree55180e7ef980c120d01382e17812dfd4d9b0387c /src/ipc/client.rs
parent69f723d68aa28698488618e00688ef3a84e40819 (diff)
downloadniri-c40de5364d5ff560c53a1faa00e138001efa6726.tar.gz
niri-c40de5364d5ff560c53a1faa00e138001efa6726.tar.bz2
niri-c40de5364d5ff560c53a1faa00e138001efa6726.zip
Add vrr_supported/enabled to output IPC
Diffstat (limited to 'src/ipc/client.rs')
-rw-r--r--src/ipc/client.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ipc/client.rs b/src/ipc/client.rs
index 97413d0b..36fb2d37 100644
--- a/src/ipc/client.rs
+++ b/src/ipc/client.rs
@@ -72,6 +72,8 @@ pub fn handle_msg(msg: Msg, json: bool) -> anyhow::Result<()> {
physical_size,
modes,
current_mode,
+ vrr_supported,
+ vrr_enabled,
logical,
} = output;
@@ -94,6 +96,13 @@ pub fn handle_msg(msg: Msg, json: bool) -> anyhow::Result<()> {
println!(" Disabled");
}
+ if vrr_supported {
+ let enabled = if vrr_enabled { "enabled" } else { "disabled" };
+ println!(" Variable refresh rate: supported, {enabled}");
+ } else {
+ println!(" Variable refresh rate: not supported");
+ }
+
if let Some((width, height)) = physical_size {
println!(" Physical size: {width}x{height} mm");
} else {