Update niri with floating config
This commit is contained in:
@ -228,26 +228,25 @@ vec4 close_color(vec3 coords_geo, vec3 size_geo) {
|
|||||||
// Find more information on the wiki:
|
// Find more information on the wiki:
|
||||||
// https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules
|
// https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules
|
||||||
|
|
||||||
// Work around WezTerm's initial configure bug
|
|
||||||
// by setting an empty default-column-width.
|
|
||||||
window-rule {
|
window-rule {
|
||||||
geometry-corner-radius 16
|
geometry-corner-radius 16
|
||||||
clip-to-geometry true
|
clip-to-geometry true
|
||||||
}
|
}
|
||||||
window-rule {
|
|
||||||
// This regular expression is intentionally made as specific as possible,
|
|
||||||
// since this is the default config, and we want no false positives.
|
|
||||||
// You can get away with just app-id="wezterm" if you want.
|
|
||||||
match app-id=r#"^org\.wezfurlong\.wezterm$"#
|
|
||||||
}
|
|
||||||
|
|
||||||
window-rule {
|
window-rule {
|
||||||
match title="Volume"
|
match title="Volume Indicator"
|
||||||
geometry-corner-radius 35
|
geometry-corner-radius 35
|
||||||
min-width 300
|
min-width 300
|
||||||
max-width 300
|
max-width 300
|
||||||
min-height 100
|
min-height 100
|
||||||
max-height 100
|
max-height 100
|
||||||
|
open-floating true
|
||||||
|
default-floating-position x=35 y=35 relative-to="top-right"
|
||||||
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
|
match app-id="Mullvad VPN"
|
||||||
|
default-floating-position x=5 y=10 relative-to="bottom-left"
|
||||||
}
|
}
|
||||||
|
|
||||||
// block out password managers from screen capture.
|
// block out password managers from screen capture.
|
||||||
@ -258,6 +257,12 @@ window-rule {
|
|||||||
block-out-from "screen-capture"
|
block-out-from "screen-capture"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
|
match title="Virtual Machine Manager"
|
||||||
|
match app-id="virt-manager"
|
||||||
|
max-width 400
|
||||||
|
}
|
||||||
|
|
||||||
binds {
|
binds {
|
||||||
// Keys consist of modifiers separated by + signs, followed by an XKB key name
|
// Keys consist of modifiers separated by + signs, followed by an XKB key name
|
||||||
// in the end. To find an XKB name for a particular key, you may use a program
|
// in the end. To find an XKB name for a particular key, you may use a program
|
||||||
@ -271,7 +276,7 @@ binds {
|
|||||||
|
|
||||||
// Mod-Shift-/, which is usually the same as Mod-?,
|
// Mod-Shift-/, which is usually the same as Mod-?,
|
||||||
// shows a list of important hotkeys.
|
// shows a list of important hotkeys.
|
||||||
Mod+Shift+Slash { show-hotkey-overlay; }
|
Mod+Shift+Plus { show-hotkey-overlay; }
|
||||||
|
|
||||||
Mod+Return { spawn "alacritty"; }
|
Mod+Return { spawn "alacritty"; }
|
||||||
Mod+D { spawn "fuzzel"; }
|
Mod+D { spawn "fuzzel"; }
|
||||||
@ -291,6 +296,9 @@ binds {
|
|||||||
|
|
||||||
Mod+Q { close-window; }
|
Mod+Q { close-window; }
|
||||||
|
|
||||||
|
Mod+Space { switch-focus-between-floating-and-tiling; }
|
||||||
|
Mod+Ctrl+Space { toggle-window-floating; }
|
||||||
|
|
||||||
Mod+Left { focus-column-left; }
|
Mod+Left { focus-column-left; }
|
||||||
Mod+Down { focus-window-down; }
|
Mod+Down { focus-window-down; }
|
||||||
Mod+Up { focus-window-up; }
|
Mod+Up { focus-window-up; }
|
||||||
|
|||||||
Reference in New Issue
Block a user