Skip to content

Commit

Permalink
niri
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Huber <gh@maxhbr.de>
maxhbr committed Dec 10, 2024
1 parent b03f9dd commit 3aae9de
Showing 2 changed files with 37 additions and 5 deletions.
15 changes: 10 additions & 5 deletions modules/myconfig.desktop.wayland.niri/config.kdl
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions modules/myconfig.desktop.wayland.niri/default.nix
Original file line number Diff line number Diff line change
@@ -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" = "<b></b>";

# Icons by state
"active" = "";
"default" = "";
};
rotate = 90;
};
modules-left = [
# "niri/workspaces"
"wlr/taskbar"
];
modules-center = [
# "niri/window"
];
};
systemd.user.services.niri = {
Unit = {

0 comments on commit 3aae9de

Please sign in to comment.