aboutsummaryrefslogtreecommitdiff
path: root/config/niri
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-06-23 08:55:56 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-06-23 08:55:56 +0200
commit25feb83aaac04628fdee264d1d0a7cffcc06e214 (patch)
treed12491308dc19efef1c928c5bebfdd749dcf83da /config/niri
parent334e69e21c1c6e767203392a97189f67db9f27c7 (diff)
Update nvim dependencies, document niri, new urgent color
Diffstat (limited to 'config/niri')
-rw-r--r--config/niri/config.kdl54
1 files changed, 28 insertions, 26 deletions
diff --git a/config/niri/config.kdl b/config/niri/config.kdl
index 002c614..af5eab5 100644
--- a/config/niri/config.kdl
+++ b/config/niri/config.kdl
@@ -164,11 +164,9 @@ layout {
// - RGB hex: "#rgb", "#rgba", "#rrggbb", "#rrggbbaa"
// - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others.
- // Color of the ring on the active monitor.
active-color "#23C17C"
-
- // Color of the ring on inactive monitors.
inactive-color "#0F261F"
+ urgent-color "#FA2B00"
// You can also use gradients. They take precedence over solid colors.
// Gradients are rendered the same as CSS linear-gradient(angle, from, to).
@@ -186,18 +184,8 @@ layout {
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
}
- // You can also add a border. It's similar to the focus ring, but always visible.
border {
- // The settings are the same as for the focus ring.
- // If you enable the border, you probably want to disable the focus ring.
off
-
- width 4
- active-color "#ffc87f"
- inactive-color "#505050"
-
- // active-gradient from="#ffbb66" to="#ffc880" angle=45 relative-to="workspace-view"
- // inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
}
// You can enable drop shadows for windows.
@@ -312,6 +300,19 @@ window-rule {
open-floating true
}
+layer-rule {
+ match namespace="^wallpaper$"
+ place-within-backdrop true
+}
+
+window-rule {
+ // This app-id regular expression will work for both:
+ // - host Firefox (app-id is "firefox")
+ // - Flatpak Firefox (app-id is "org.mozilla.firefox")
+ match app-id=r#"firefox$"# title="^Extension: (Bitwarden Password Manager)"
+ block-out-from "screen-capture"
+}
+
// Example: block out two password managers from screen capture.
// (This example rule is commented out with a "/-" in front.)
/-window-rule {
@@ -347,10 +348,10 @@ binds {
Mod+Shift+Slash { show-hotkey-overlay; }
// Suggested binds for running programs: terminal, app launcher, screen locker.
- Mod+Return { spawn "kitty"; }
- Mod+Space { spawn "j4-dmenu-desktop" "-d" "bemenu --single-instance -i -n -H 26 --hp 10 --fn 'InputSansCompressed Light 10' -p '>' --ff '#0f261F' --tf '#23C17C' --nf '#0f261F' --cf '#23C17C2' --af '#00140d' --hb '#23C17C' --hf '#0f261F' --hf '#DAE6E3' --nb '#DAE6E3' --tb '#DAE6E3' --fb '#DAE6E3' --cb '#DAE6E3' --ab '#DAE6E3'";}
- Mod+Shift+Space { spawn "bemenu-run" "--single-instance" "-i" "-n" "-H" "26" "--hp" "10" "--fn" "InputSansCompressed Light 10" "-p" ">" "--ff" "#0f261F" "--tf" "#23C17C" "--nf" "#0f261F" "--cf" "#23C17C2" "--af" "#00140d" "--hb" "#23C17C" "--hf" "#0f261F" "--hf" "#DAE6E3" "--nb" "#DAE6E3" "--tb" "#DAE6E3" "--fb" "#DAE6E3" "--cb" "#DAE6E3" "--ab" "#DAE6E3";}
- Super+Alt+L { spawn "swaylock"; }
+ Mod+Return hotkey-overlay-title="Open Terminal (kitty)" { spawn "kitty"; }
+ Mod+Space hotkey-overlay-title="Open Launcher (Desktop)" { spawn "j4-dmenu-desktop" "-d" "bemenu --single-instance -i -n -H 26 --hp 10 --fn 'InputSansCompressed Light 10' -p '>' --ff '#0f261F' --tf '#23C17C' --nf '#0f261F' --cf '#23C17C2' --af '#00140d' --hb '#23C17C' --hf '#0f261F' --hf '#DAE6E3' --nb '#DAE6E3' --tb '#DAE6E3' --fb '#DAE6E3' --cb '#DAE6E3' --ab '#DAE6E3'";}
+ Mod+Shift+Space hotkey-overlay-title="Open Launcher (Terminal)" { spawn "bemenu-run" "--single-instance" "-i" "-n" "-H" "26" "--hp" "10" "--fn" "InputSansCompressed Light 10" "-p" ">" "--ff" "#0f261F" "--tf" "#23C17C" "--nf" "#0f261F" "--cf" "#23C17C2" "--af" "#00140d" "--hb" "#23C17C" "--hf" "#0f261F" "--hf" "#DAE6E3" "--nb" "#DAE6E3" "--tb" "#DAE6E3" "--fb" "#DAE6E3" "--cb" "#DAE6E3" "--ab" "#DAE6E3";}
+ Mod+Alt+L hotkey-overlay-title="Lock Screen" { spawn "swaylock"; }
// You can also use a shell. Do this if you need pipes, multiple commands, etc.
// Note: the entire command goes as a single argument in the end.
@@ -377,14 +378,15 @@ binds {
Ctrl+XF86MonBrightnessDown allow-when-locked=true { spawn "bash" "-c" "brightnessctl set 5%- -d 'kbd_backlight'| sed -En 's/.*\\(([0-9]+)%\\).*/\\1/p' > $XDG_RUNTIME_DIR/wob.sock"; }
Ctrl+XF86MonBrightnessUp allow-when-locked=true { spawn "bash" "-c" "brightnessctl set +5% -d 'kbd_backlight' | sed -En 's/.*\\(([0-9]+)%\\).*/\\1/p' > $XDG_RUNTIME_DIR/wob.sock"; }
- Mod+V { spawn "bash" "-c" "cliphist list | bemenu --single-instance -i -l 10 -n -H 26 --hp 10 --fn 'InputSansCompressed Light 10' -p '>' --ff '#0f261F' --tf '#23C17C' --nf '#0f261F' --cf '#23C17C2' --af '#00140d' --hb '#23C17C' --hf '#0f261F' --hf '#DAE6E3' --nb '#DAE6E3' --tb '#DAE6E3' --fb '#DAE6E3' --cb '#DAE6E3' --ab '#DAE6E3' | cliphist decode | wl-copy"; }
- // Mod+V { spawn "bash" "-c" "cliphist list | bemenu | cliphist decode | wl-copy"; }
+ Mod+V hotkey-overlay-title="Open Clipboard Manager" { spawn "bash" "-c" "cliphist list | bemenu --single-instance -i -l 10 -n -H 26 --hp 10 --fn 'InputSansCompressed Light 10' -p '>' --ff '#0f261F' --tf '#23C17C' --nf '#0f261F' --cf '#23C17C2' --af '#00140d' --hb '#23C17C' --hf '#0f261F' --hf '#DAE6E3' --nb '#DAE6E3' --tb '#DAE6E3' --fb '#DAE6E3' --cb '#DAE6E3' --ab '#DAE6E3' | cliphist decode | wl-copy"; }
+ Mod+grave hotkey-overlay-title="Quick Terminal" { spawn "kitten" "quick-access-terminal"; }
- XF86AudioRecord { spawn "wpaperctl" "next"; }
- Shift+XF86AudioRecord { spawn "wpaperctl" "previous"; }
- Mod+Alt+Ctrl+XF86AudioRecord { spawn "~/.wpaperalt"; }
+ XF86AudioMicMute { spawn "wpaperctl" "next"; }
+ Shift+XF86AudioMicMute { spawn "wpaperctl" "previous"; }
+ Mod+Alt+Ctrl+XF86AudioMicMute hotkey-overlay-title=null { spawn "~/.wpaperalt"; }
- XF86LaunchA { spawn "wofi"; }
+ XF86LaunchA { toggle-overview; }
+ Mod+XF86LaunchA hotkey-overlay-title="Open App Grid" { spawn "wofi"; }
Mod+Q { close-window; }
@@ -584,11 +586,11 @@ binds {
// Mod+Space { switch-layout "next"; }
// Mod+Shift+Space { switch-layout "prev"; }
- Mod+Shift+2 { screenshot; }
+ Mod+Shift+4 { screenshot; }
Mod+Shift+3 { screenshot-screen; }
- Mod+Shift+4 { screenshot-window; }
+ Mod+Shift+5 { screenshot-window; }
- Mod+Shift+0 { spawn "hyprpicker" "-a"; }
+ Mod+Shift+0 hotkey-overlay-title="Open Color Picker" { spawn "hyprpicker" "-a"; }
// Applications such as remote-desktop clients and software KVM switches may
// request that niri stops processing the keyboard shortcuts defined here