aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs
index 959a804e..3d40d890 100644
--- a/src/utils/mod.rs
+++ b/src/utils/mod.rs
@@ -224,6 +224,10 @@ pub fn output_matches_name(output: &Output, target: &str) -> bool {
name.matches(target)
}
+pub fn is_laptop_panel(connector: &str) -> bool {
+ matches!(connector.get(..4), Some("eDP-" | "LVDS" | "DSI-"))
+}
+
pub fn with_toplevel_role<T>(
toplevel: &ToplevelSurface,
f: impl FnOnce(&mut XdgToplevelSurfaceRoleAttributes) -> T,