aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-12-28 09:36:10 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-12-28 09:36:10 +0400
commit249f2b7a21f883726e0c8c49cc3bbec52cc1b6cc (patch)
tree78e692b5e01704c803d76a887420804335f0c3bd /src/config.rs
parentf3e5e13c4503978d47934fb4828bb12fbe606220 (diff)
downloadniri-249f2b7a21f883726e0c8c49cc3bbec52cc1b6cc.tar.gz
niri-249f2b7a21f883726e0c8c49cc3bbec52cc1b6cc.tar.bz2
niri-249f2b7a21f883726e0c8c49cc3bbec52cc1b6cc.zip
Add disable-power-key-handling option
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index ff096017..9ca61e20 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -55,6 +55,8 @@ pub struct Input {
pub touchpad: Touchpad,
#[knuffel(child, default)]
pub tablet: Tablet,
+ #[knuffel(child)]
+ pub disable_power_key_handling: bool,
}
#[derive(knuffel::Decode, Debug, Default, PartialEq, Eq)]
@@ -585,6 +587,8 @@ mod tests {
tablet {
map-to-output "eDP-1"
}
+
+ disable-power-key-handling
}
output "eDP-1" {
@@ -666,6 +670,7 @@ mod tests {
tablet: Tablet {
map_to_output: Some("eDP-1".to_owned()),
},
+ disable_power_key_handling: true,
},
outputs: vec![Output {
off: false,