update niri for multi monitor support
This commit is contained in:
parent
a85aa9ee0f
commit
20f68e1dee
6 changed files with 42 additions and 40 deletions
|
|
@ -1,10 +1,11 @@
|
|||
include "include/local.kdl"
|
||||
// ╭─────────────────────────────────────────────────────────╮
|
||||
// │ Windows Rules │
|
||||
// ╰─────────────────────────────────────────────────────────╯
|
||||
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.
|
||||
// You can get away with just app-id="wezterm" f you want.
|
||||
match app-id="^org\\.wezfurlong\\.wezterm$"
|
||||
default-column-width {
|
||||
|
||||
|
|
@ -109,10 +110,10 @@ binds {
|
|||
spawn "rofi" "-show" "drun" "-run-command" "uwsm app -- {cmd}"
|
||||
}
|
||||
XF86AudioRaiseVolume allow-when-locked=true {
|
||||
spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+"
|
||||
spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.025+"
|
||||
}
|
||||
XF86AudioLowerVolume allow-when-locked=true {
|
||||
spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"
|
||||
spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.025-"
|
||||
}
|
||||
XF86AudioMute allow-when-locked=true {
|
||||
spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||
|
|
@ -151,10 +152,10 @@ binds {
|
|||
focus-window-or-workspace-up
|
||||
}
|
||||
Mod+Right {
|
||||
focus-column-right
|
||||
focus-column-or-monitor-right
|
||||
}
|
||||
Mod+H {
|
||||
focus-column-left
|
||||
focus-column-or-monitor-left
|
||||
}
|
||||
Mod+J {
|
||||
focus-window-or-workspace-down
|
||||
|
|
@ -163,7 +164,7 @@ binds {
|
|||
focus-window-or-workspace-up
|
||||
}
|
||||
Mod+L {
|
||||
focus-column-right
|
||||
focus-column-or-monitor-right
|
||||
}
|
||||
Mod+Shift+Left {
|
||||
move-column-left
|
||||
|
|
@ -423,16 +424,10 @@ environment {
|
|||
TERMINAL "/usr/bin/kitty"
|
||||
}
|
||||
// ── Display Options ─────────────────────────────────────────────────
|
||||
output "eDP-1" {
|
||||
off
|
||||
}
|
||||
output "HDMI-A-1" {
|
||||
scale 1
|
||||
mode "3440x1440"
|
||||
}
|
||||
output "DP-1" {
|
||||
variable-refresh-rate on-demand=true
|
||||
}
|
||||
// ── Input Options ───────────────────────────────────────────────────
|
||||
input {
|
||||
keyboard {
|
||||
0
configs/niri/base/include/.gitkeep
Normal file
0
configs/niri/base/include/.gitkeep
Normal file
32
configs/niri/work-laptop/local.kdl
Normal file
32
configs/niri/work-laptop/local.kdl
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
window-rule {
|
||||
match app-id="brave-work"
|
||||
open-on-workspace "1"
|
||||
open-focused true
|
||||
default-column-width {
|
||||
proportion 0.5
|
||||
}
|
||||
}
|
||||
window-rule {
|
||||
match app-id="brave-personal"
|
||||
open-on-workspace "2"
|
||||
open-focused false
|
||||
default-column-width {
|
||||
proportion 0.5
|
||||
}
|
||||
}
|
||||
output "HDMI-A-1" {
|
||||
scale 1
|
||||
mode "3440x1440"
|
||||
focus-at-startup
|
||||
position x=1920 y=0
|
||||
}
|
||||
output "eDP-1" {
|
||||
mode "1920x1080@60.000"
|
||||
position x=0 y=720
|
||||
layout {
|
||||
default-column-width {
|
||||
proportion 1.0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue