diff --git a/modules/myconfig.desktop.wayland.niri/config.kdl b/modules/myconfig.desktop.wayland.niri/config.kdl index cca15612b9..56899f8868 100644 --- a/modules/myconfig.desktop.wayland.niri/config.kdl +++ b/modules/myconfig.desktop.wayland.niri/config.kdl @@ -40,7 +40,7 @@ input { // warp-mouse-to-focus // Allow focus-follows-mouse only when it will not scroll the view. - focus-follows-mouse max-scroll-amount="0%" + focus-follows-mouse max-scroll-amount="5%" workspace-auto-back-and-forth } @@ -263,6 +263,11 @@ window-rule { clip-to-geometry true } +window-rule { + match is-active=false + opacity 0.8 +} + window-rule { match app-id=r#"^org\.keepassxc\.KeePassXC$"# match app-id=r#"^org\.gnome\.World\.Secrets$"# @@ -481,12 +486,12 @@ binds { // * adjust width as a percentage of screen width: "-10%" or "+10%" // Pixel sizes use logical, or scaled, pixels. I.e. on an output with scale 2.0, // set-column-width "100" will make the column occupy 200 physical screen pixels. - Mod+Minus { set-column-width "-10%"; } - Mod+Equal { set-column-width "+10%"; } + Mod+Minus { set-column-width "-2%"; } + Mod+Equal { set-column-width "+2%"; } // Finer height adjustments when in column with other windows. - Mod+Shift+Minus { set-window-height "-10%"; } - Mod+Shift+Equal { set-window-height "+10%"; } + Mod+Shift+Minus { set-window-height "-2%"; } + Mod+Shift+Equal { set-window-height "+2%"; } // Actions to switch layouts. // Note: if you uncomment these, make sure you do NOT have diff --git a/modules/myconfig.desktop.wayland.niri/default.nix b/modules/myconfig.desktop.wayland.niri/default.nix index 0ec9920e9b..16af022707 100644 --- a/modules/myconfig.desktop.wayland.niri/default.nix +++ b/modules/myconfig.desktop.wayland.niri/default.nix @@ -53,9 +53,36 @@ in { in "${drv}/config.kdl"; }; programs.waybar.settings.mainBar = { + "niri/window" = { + "format" = "{}"; + "rewrite" = { + "(.*) - Mozilla Firefox" = "🌎 $1"; + "(.*) - zsh" = "> [$1]"; + }; + rotate = 90; + }; + "niri/workspaces" = { + "format" = "{icon}"; + "format-icons" = { + # Named workspaces + # (you need to configure them in niri) + "browser" = ""; + "discord" = ""; + "chat" = ""; + + # Icons by state + "active" = ""; + "default" = ""; + }; + rotate = 90; + }; modules-left = [ + # "niri/workspaces" "wlr/taskbar" ]; + modules-center = [ + # "niri/window" + ]; }; systemd.user.services.niri = { Unit = {