use super::*;
pub struct FullscreenState(
pub bool,
);
#[async_trait]
impl HyprData for FullscreenState {
fn get() -> crate::Result<Self> {
Ok(Self(Workspace::get_active()?.fullscreen))
}
async fn get_async() -> crate::Result<Self> {
Ok(Self(Workspace::get_active_async().await?.fullscreen))
}
}
impl FullscreenState {
pub fn bool(self) -> bool {
self.0
}
}