niri
This commit is contained in:
+17
-14
@@ -8,6 +8,8 @@
|
|||||||
// https://yalter.github.io/niri/Configuration:-Input
|
// https://yalter.github.io/niri/Configuration:-Input
|
||||||
|
|
||||||
prefer-no-csd
|
prefer-no-csd
|
||||||
|
|
||||||
|
environment
|
||||||
input {
|
input {
|
||||||
keyboard {
|
keyboard {
|
||||||
xkb {
|
xkb {
|
||||||
@@ -261,8 +263,9 @@ window-rule {
|
|||||||
// This regular expression is intentionally made as specific as possible,
|
// This regular expression is intentionally made as specific as possible,
|
||||||
// since this is the default config, and we want no false positives.
|
// since this is the default config, and we want no false positives.
|
||||||
// You can get away with just app-id="wezterm" if you want.
|
// You can get away with just app-id="wezterm" if you want.
|
||||||
match app-id=r#"^org\.wezfurlong\.wezterm$"#
|
match app-id=r"^org\.wezfurlong\.wezterm$"
|
||||||
default-column-width {}
|
default-column-width {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Open the Firefox picture-in-picture player as floating by default.
|
// Open the Firefox picture-in-picture player as floating by default.
|
||||||
@@ -270,15 +273,15 @@ window-rule {
|
|||||||
// This app-id regular expression will work for both:
|
// This app-id regular expression will work for both:
|
||||||
// - host Firefox (app-id is "firefox")
|
// - host Firefox (app-id is "firefox")
|
||||||
// - Flatpak Firefox (app-id is "org.mozilla.firefox")
|
// - Flatpak Firefox (app-id is "org.mozilla.firefox")
|
||||||
match app-id=r#"firefox$"# title="^Picture-in-Picture$"
|
match app-id=r"firefox$" title="^Picture-in-Picture$"
|
||||||
open-floating true
|
open-floating true
|
||||||
}
|
}
|
||||||
|
|
||||||
// Example: block out two password managers from screen capture.
|
// Example: block out two password managers from screen capture.
|
||||||
// (This example rule is commented out with a "/-" in front.)
|
// (This example rule is commented out with a "/-" in front.)
|
||||||
/-window-rule {
|
/-window-rule {
|
||||||
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
|
match app-id=r"^org\.keepassxc\.KeePassXC$"
|
||||||
match app-id=r#"^org\.gnome\.World\.Secrets$"#
|
match app-id=r"^org\.gnome\.World\.Secrets$"
|
||||||
|
|
||||||
block-out-from "screen-capture"
|
block-out-from "screen-capture"
|
||||||
|
|
||||||
@@ -311,15 +314,15 @@ binds {
|
|||||||
// "-l 1.0" limits the volume to 100%.
|
// "-l 1.0" limits the volume to 100%.
|
||||||
XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+ -l 1.0"; }
|
XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+ -l 1.0"; }
|
||||||
XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-"; }
|
XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-"; }
|
||||||
XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; }
|
XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; }
|
||||||
XF86AudioMicMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; }
|
XF86AudioMicMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; }
|
||||||
|
|
||||||
// Example media keys mapping using playerctl.
|
// Example media keys mapping using playerctl.
|
||||||
// This will work with any MPRIS-enabled media player.
|
// This will work with any MPRIS-enabled media player.
|
||||||
XF86AudioPlay allow-when-locked=true { spawn-sh "playerctl play-pause"; }
|
XF86AudioPlay allow-when-locked=true { spawn-sh "playerctl play-pause"; }
|
||||||
XF86AudioStop allow-when-locked=true { spawn-sh "playerctl stop"; }
|
XF86AudioStop allow-when-locked=true { spawn-sh "playerctl stop"; }
|
||||||
XF86AudioPrev allow-when-locked=true { spawn-sh "playerctl previous"; }
|
XF86AudioPrev allow-when-locked=true { spawn-sh "playerctl previous"; }
|
||||||
XF86AudioNext allow-when-locked=true { spawn-sh "playerctl next"; }
|
XF86AudioNext allow-when-locked=true { spawn-sh "playerctl next"; }
|
||||||
|
|
||||||
// Example brightness key mappings for brightnessctl.
|
// Example brightness key mappings for brightnessctl.
|
||||||
// You can use regular spawn with multiple arguments too (to avoid going through "sh"),
|
// You can use regular spawn with multiple arguments too (to avoid going through "sh"),
|
||||||
@@ -414,10 +417,10 @@ binds {
|
|||||||
// To avoid scrolling through workspaces really fast, you can use
|
// To avoid scrolling through workspaces really fast, you can use
|
||||||
// the cooldown-ms property. The bind will be rate-limited to this value.
|
// the cooldown-ms property. The bind will be rate-limited to this value.
|
||||||
// You can set a cooldown on any bind, but it's most useful for the wheel.
|
// You can set a cooldown on any bind, but it's most useful for the wheel.
|
||||||
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
||||||
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||||
Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
|
Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
|
||||||
Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
|
Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
|
||||||
|
|
||||||
Mod+WheelScrollRight { focus-column-right; }
|
Mod+WheelScrollRight { focus-column-right; }
|
||||||
Mod+WheelScrollLeft { focus-column-left; }
|
Mod+WheelScrollLeft { focus-column-left; }
|
||||||
|
|||||||
Reference in New Issue
Block a user