From 8e5f7843a3b8648c229d75a8d1ee87f6d4d51078 Mon Sep 17 00:00:00 2001 From: leiserfg Date: Sun, 15 Sep 2024 13:53:58 +0200 Subject: [PATCH] Include disabled monitors --- src/data/regular.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/data/regular.rs b/src/data/regular.rs index c875549..1caebf1 100644 --- a/src/data/regular.rs +++ b/src/data/regular.rs @@ -29,7 +29,7 @@ fn call_hyprctl_data_cmd(cmd: DataCommands) -> crate::Result { /// This pub(crate) enum holds every socket command that returns data #[derive(Debug, Display, Clone, Copy, PartialEq, Eq)] pub(crate) enum DataCommands { - #[display(fmt = "monitors")] + #[display(fmt = "monitors all")] Monitors, #[display(fmt = "workspaces")] Workspaces, @@ -122,6 +122,8 @@ pub struct Monitor { pub dpms_status: bool, /// VRR state pub vrr: bool, + /// Is the monitor disabled or not + pub disabled: bool, } impl HyprDataActive for Monitor {