aboutsummaryrefslogtreecommitdiff
path: root/niri-config
diff options
context:
space:
mode:
authorKent Daleng <kent.daleng@nav.no>2025-06-03 19:31:18 +0200
committerGitHub <noreply@github.com>2025-06-03 20:31:18 +0300
commitabac28a65c6c742114ef292221dd26e2a3a2f04b (patch)
tree72451a9fbbd594cbab56f6c15c34e448fb3dadad /niri-config
parenta7186a0441fe866784a601c6192850267802dca5 (diff)
downloadniri-abac28a65c6c742114ef292221dd26e2a3a2f04b.tar.gz
niri-abac28a65c6c742114ef292221dd26e2a3a2f04b.tar.bz2
niri-abac28a65c6c742114ef292221dd26e2a3a2f04b.zip
add option to hide unbound actions in hotkey overlay (#1618)
* add option to hide unbound actions in hotkey overlay * fix config test, add some docs * Add kdl language hint Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com> * Improve docs Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com> * hide_unbound -> hide_not_bound * forgot to rename in wiki * filter actions before calling format * use any instead of contains * retain instead of filter --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'niri-config')
-rw-r--r--niri-config/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs
index 012db9e9..83689a4b 100644
--- a/niri-config/src/lib.rs
+++ b/niri-config/src/lib.rs
@@ -1031,6 +1031,8 @@ pub struct Struts {
pub struct HotkeyOverlay {
#[knuffel(child)]
pub skip_at_startup: bool,
+ #[knuffel(child)]
+ pub hide_not_bound: bool,
}
#[derive(knuffel::Decode, Debug, Default, Clone, Copy, PartialEq, Eq)]
@@ -4610,6 +4612,7 @@ mod tests {
},
hotkey_overlay: HotkeyOverlay {
skip_at_startup: true,
+ hide_not_bound: false,
},
animations: Animations {
off: false,