From 152c5ba57f75b516cea20028747961a6fae808a7 Mon Sep 17 00:00:00 2001 From: Olexandr Smirnov Date: Sun, 13 Jul 2025 13:22:10 +0300 Subject: [PATCH] niri: workspaces order; window-rules - move the "laptop" workspace to the end, so it does mess up with order of the main workspaces - remove window rules that i dont use --- config/niri/config.kdl | 22 +++++----------------- config/waybar/modules/niri.json | 1 + 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/config/niri/config.kdl b/config/niri/config.kdl index 78fa378..045862d 100644 --- a/config/niri/config.kdl +++ b/config/niri/config.kdl @@ -98,11 +98,11 @@ animations { // https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules // https://github.com/YaLTeR/niri/wiki/Configuration:-move-column-to-workspace -workspace "laptop" { open-on-output "eDP-1"; } workspace "tools" { open-on-output "HDMI-A-1"; } workspace "web"{ open-on-output "HDMI-A-1"; } workspace "dev"{ open-on-output "HDMI-A-1"; } workspace "misc" { open-on-output "HDMI-A-1"; } +workspace "laptop" { open-on-output "eDP-1"; } window-rule { match app-id="anki" @@ -124,6 +124,7 @@ window-rule { window-rule { match app-id="Emacs" match app-id="Code" + match app-id="Zed" open-on-workspace "dev" } @@ -136,7 +137,7 @@ window-rule { window-rule { match app-id="org.gnome.Solanum"; - default-floating-position relative-to="top-left" x=10 y=10 + default-floating-position relative-to="bottom-left" x=10 y=10 open-focused true open-on-workspace "laptop" } @@ -147,8 +148,9 @@ window-rule { match app-id="firefox" match app-id="brave" match app-id="kitty" - match app-id="anki" match app-id="obsidian" + match app-id="Code" + match app-id="Zed" open-maximized true } @@ -160,20 +162,6 @@ window-rule { open-floating true } -window-rule { - match is-window-cast-target=true - border { inactive-color "#7d0d2d"; } - shadow { color "#7d0d2d70"; } - focus-ring { - active-color "#f38ba8" - inactive-color "#7d0d2d" - } - tab-indicator { - active-color "#f38ba8" - inactive-color "#7d0d2d" - } -} - window-rule { match app-id="KeePassXC" match app-id="obsidian" diff --git a/config/waybar/modules/niri.json b/config/waybar/modules/niri.json index 1ff13b3..e5ce336 100644 --- a/config/waybar/modules/niri.json +++ b/config/waybar/modules/niri.json @@ -6,6 +6,7 @@ "web": "󰖟", "dev": "", "misc": "", + "laptop": "", "default": "" } },