|
|
|
|
@@ -61,12 +61,17 @@ input {
|
|
|
|
|
// middle-emulation
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
touch {
|
|
|
|
|
map-to-output "eDP-1"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Uncomment this to make the mouse warp to the center of newly focused windows.
|
|
|
|
|
// warp-mouse-to-focus
|
|
|
|
|
|
|
|
|
|
// Focus windows and outputs automatically when moving the mouse into them.
|
|
|
|
|
// Setting max-scroll-amount="0%" makes it work only on windows already fully on screen.
|
|
|
|
|
focus-follows-mouse max-scroll-amount="0%"
|
|
|
|
|
workspace-auto-back-and-forth
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// You can configure outputs by their name, which you can find
|
|
|
|
|
@@ -75,6 +80,21 @@ input {
|
|
|
|
|
// Find more information on the wiki:
|
|
|
|
|
// https://yalter.github.io/niri/Configuration:-Outputs
|
|
|
|
|
// Remember to uncomment the node by removing "/-"!
|
|
|
|
|
// Lenovo main
|
|
|
|
|
output "DP-2" {
|
|
|
|
|
mode "2560x1440"
|
|
|
|
|
scale 1.0
|
|
|
|
|
transform "normal"
|
|
|
|
|
position x=0 y=250
|
|
|
|
|
variable-refresh-rate
|
|
|
|
|
};
|
|
|
|
|
// Eizo right
|
|
|
|
|
output "DP-3" {
|
|
|
|
|
mode "1920x1200"
|
|
|
|
|
scale 1.0
|
|
|
|
|
transform "270"
|
|
|
|
|
position x=2560 y=0
|
|
|
|
|
};
|
|
|
|
|
output "eDP-1" {
|
|
|
|
|
// Uncomment this line to disable this output.
|
|
|
|
|
// off
|
|
|
|
|
@@ -106,6 +126,14 @@ output "eDP-1" {
|
|
|
|
|
position x=0 y=0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cursor {
|
|
|
|
|
xcursor-theme "Breeze_Hacked"
|
|
|
|
|
xcursor-size 24
|
|
|
|
|
|
|
|
|
|
hide-when-typing
|
|
|
|
|
hide-after-inactive-ms 1000
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Settings that influence how windows are positioned and sized.
|
|
|
|
|
// Find more information on the wiki:
|
|
|
|
|
// https://yalter.github.io/niri/Configuration:-Layout
|
|
|
|
|
@@ -141,9 +169,9 @@ layout {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// You can change the default width of the new windows.
|
|
|
|
|
default-column-width { proportion 1.0; }
|
|
|
|
|
//default-column-width { proportion 1.0; }
|
|
|
|
|
// If you leave the brackets empty, the windows themselves will decide their initial width.
|
|
|
|
|
// default-column-width {}
|
|
|
|
|
default-column-width {}
|
|
|
|
|
|
|
|
|
|
// By default focus ring and border are rendered as a solid background rectangle
|
|
|
|
|
// behind windows. That is, they will show up through semitransparent windows.
|
|
|
|
|
@@ -272,6 +300,9 @@ layout {
|
|
|
|
|
|
|
|
|
|
// This line starts waybar, a commonly used bar for Wayland compositors.
|
|
|
|
|
spawn-at-startup "noctalia-shell"
|
|
|
|
|
spawn-at-startup "firefox"
|
|
|
|
|
spawn-at-startup "element-desktop"
|
|
|
|
|
spawn-at-startup "thunderbird"
|
|
|
|
|
|
|
|
|
|
// To run a shell command (with variables, pipes, etc.), use spawn-sh-at-startup:
|
|
|
|
|
// spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell"
|
|
|
|
|
@@ -313,15 +344,39 @@ animations {
|
|
|
|
|
|
|
|
|
|
// Work around WezTerm's initial configure bug
|
|
|
|
|
// by setting an empty default-column-width.
|
|
|
|
|
workspace "browser" {
|
|
|
|
|
open-on-output "DP-2"
|
|
|
|
|
}
|
|
|
|
|
workspace "chat" {
|
|
|
|
|
open-on-output "DP-3"
|
|
|
|
|
}
|
|
|
|
|
workspace "terminal" {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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$"#
|
|
|
|
|
match app-id="alacritty"
|
|
|
|
|
default-column-width {}
|
|
|
|
|
match app-id="Alacritty"
|
|
|
|
|
match title="Firefox"
|
|
|
|
|
default-column-width { proportion 1.0; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window-rule {
|
|
|
|
|
match title="Firefox"
|
|
|
|
|
default-column-width { proportion 1.0; }
|
|
|
|
|
open-on-workspace "browser"
|
|
|
|
|
}
|
|
|
|
|
window-rule {
|
|
|
|
|
match app-id="Element"
|
|
|
|
|
match app-id="thunderbird"
|
|
|
|
|
default-column-width { proportion 1.0; }
|
|
|
|
|
open-on-workspace "chat"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Open the Firefox picture-in-picture player as floating by default.
|
|
|
|
|
window-rule {
|
|
|
|
|
// This app-id regular expression will work for both:
|
|
|
|
|
@@ -397,6 +452,12 @@ binds {
|
|
|
|
|
Mod+K { focus-window-up; }
|
|
|
|
|
Mod+L { focus-column-right; }
|
|
|
|
|
|
|
|
|
|
// colemak-dh
|
|
|
|
|
Mod+M { focus-column-left; }
|
|
|
|
|
Mod+N { focus-window-down; }
|
|
|
|
|
Mod+E { focus-window-up; }
|
|
|
|
|
Mod+I { focus-column-right; }
|
|
|
|
|
|
|
|
|
|
Mod+Ctrl+Left { move-column-left; }
|
|
|
|
|
Mod+Ctrl+Down { move-window-down; }
|
|
|
|
|
Mod+Ctrl+Up { move-window-up; }
|
|
|
|
|
@@ -406,6 +467,12 @@ binds {
|
|
|
|
|
Mod+Ctrl+K { move-window-up; }
|
|
|
|
|
Mod+Ctrl+L { move-column-right; }
|
|
|
|
|
|
|
|
|
|
// colemak-dh
|
|
|
|
|
Mod+Ctrl+M { move-column-left; }
|
|
|
|
|
Mod+Ctrl+N { move-window-down; }
|
|
|
|
|
Mod+Ctrl+E { move-window-up; }
|
|
|
|
|
Mod+Ctrl+I { move-column-right; }
|
|
|
|
|
|
|
|
|
|
// Alternative commands that move across workspaces when reaching
|
|
|
|
|
// the first or last window in a column.
|
|
|
|
|
// Mod+J { focus-window-or-workspace-down; }
|
|
|
|
|
@@ -427,6 +494,12 @@ binds {
|
|
|
|
|
Mod+Shift+K { focus-monitor-up; }
|
|
|
|
|
Mod+Shift+L { focus-monitor-right; }
|
|
|
|
|
|
|
|
|
|
//colemak-dh
|
|
|
|
|
Mod+Shift+M { focus-monitor-left; }
|
|
|
|
|
Mod+Shift+N { focus-monitor-down; }
|
|
|
|
|
Mod+Shift+I { focus-monitor-up; }
|
|
|
|
|
Mod+Shift+O { focus-monitor-right; }
|
|
|
|
|
|
|
|
|
|
Mod+Shift+Ctrl+Left { move-column-to-monitor-left; }
|
|
|
|
|
Mod+Shift+Ctrl+Down { move-column-to-monitor-down; }
|
|
|
|
|
Mod+Shift+Ctrl+Up { move-column-to-monitor-up; }
|
|
|
|
|
@@ -436,6 +509,12 @@ binds {
|
|
|
|
|
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
|
|
|
|
|
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
|
|
|
|
|
|
|
|
|
|
// colemak-dh
|
|
|
|
|
Mod+Shift+Ctrl+M { move-column-to-monitor-left; }
|
|
|
|
|
Mod+Shift+Ctrl+N { move-column-to-monitor-down; }
|
|
|
|
|
Mod+Shift+Ctrl+E { move-column-to-monitor-up; }
|
|
|
|
|
Mod+Shift+Ctrl+I { move-column-to-monitor-right; }
|
|
|
|
|
|
|
|
|
|
// Alternatively, there are commands to move just a single window:
|
|
|
|
|
// Mod+Shift+Ctrl+Left { move-window-to-monitor-left; }
|
|
|
|
|
// ...
|
|
|
|
|
@@ -447,11 +526,11 @@ binds {
|
|
|
|
|
Mod+Page_Down { focus-workspace-down; }
|
|
|
|
|
Mod+Page_Up { focus-workspace-up; }
|
|
|
|
|
Mod+U { focus-workspace-down; }
|
|
|
|
|
Mod+I { focus-workspace-up; }
|
|
|
|
|
//Mod+I { focus-workspace-up; }
|
|
|
|
|
Mod+Ctrl+Page_Down { move-column-to-workspace-down; }
|
|
|
|
|
Mod+Ctrl+Page_Up { move-column-to-workspace-up; }
|
|
|
|
|
Mod+Ctrl+U { move-column-to-workspace-down; }
|
|
|
|
|
Mod+Ctrl+I { move-column-to-workspace-up; }
|
|
|
|
|
//Mod+Ctrl+I { move-column-to-workspace-up; }
|
|
|
|
|
|
|
|
|
|
// Alternatively, there are commands to move just a single window:
|
|
|
|
|
// Mod+Ctrl+Page_Down { move-window-to-workspace-down; }
|
|
|
|
|
@@ -460,7 +539,7 @@ binds {
|
|
|
|
|
Mod+Shift+Page_Down { move-workspace-down; }
|
|
|
|
|
Mod+Shift+Page_Up { move-workspace-up; }
|
|
|
|
|
Mod+Shift+U { move-workspace-down; }
|
|
|
|
|
Mod+Shift+I { move-workspace-up; }
|
|
|
|
|
//Mod+Shift+I { move-workspace-up; }
|
|
|
|
|
|
|
|
|
|
// You can bind mouse wheel scroll ticks using the following syntax.
|
|
|
|
|
// These binds will change direction based on the natural-scroll setting.
|
|
|
|
|
@@ -502,18 +581,18 @@ binds {
|
|
|
|
|
//
|
|
|
|
|
// For example, with 2 workspaces + 1 empty, indices 3, 4, 5 and so on
|
|
|
|
|
// will all refer to the 3rd workspace.
|
|
|
|
|
Mod+1 { focus-workspace 1; }
|
|
|
|
|
Mod+2 { focus-workspace 2; }
|
|
|
|
|
Mod+3 { focus-workspace 3; }
|
|
|
|
|
Mod+1 { focus-workspace "browser"; }
|
|
|
|
|
Mod+2 { focus-workspace "chat"; }
|
|
|
|
|
Mod+3 { focus-workspace "terminal"; }
|
|
|
|
|
Mod+4 { focus-workspace 4; }
|
|
|
|
|
Mod+5 { focus-workspace 5; }
|
|
|
|
|
Mod+6 { focus-workspace 6; }
|
|
|
|
|
Mod+7 { focus-workspace 7; }
|
|
|
|
|
Mod+8 { focus-workspace 8; }
|
|
|
|
|
Mod+9 { focus-workspace 9; }
|
|
|
|
|
Mod+Ctrl+1 { move-column-to-workspace 1; }
|
|
|
|
|
Mod+Ctrl+2 { move-column-to-workspace 2; }
|
|
|
|
|
Mod+Ctrl+3 { move-column-to-workspace 3; }
|
|
|
|
|
Mod+Ctrl+1 { move-column-to-workspace "browser"; }
|
|
|
|
|
Mod+Ctrl+2 { move-column-to-workspace "chat"; }
|
|
|
|
|
Mod+Ctrl+3 { move-column-to-workspace "terminal"; }
|
|
|
|
|
Mod+Ctrl+4 { move-column-to-workspace 4; }
|
|
|
|
|
Mod+Ctrl+5 { move-column-to-workspace 5; }
|
|
|
|
|
Mod+Ctrl+6 { move-column-to-workspace 6; }
|
|
|
|
|
|