niri: workspaces

This commit is contained in:
js0ny 2025-11-16 19:21:11 +00:00
parent d59329969d
commit 25a8b45d79
6 changed files with 77 additions and 18 deletions

View file

@ -25,3 +25,7 @@ indent_style = space
# Empty ruleset to skip global settings # Empty ruleset to skip global settings
# charset = gbk # Not available # charset = gbk # Not available
# end_of_line = crlf # end_of_line = crlf
[*.nix]
indent_size = 2

View file

@ -0,0 +1,3 @@
vim.bo.shiftwidth = 2
vim.bo.softtabstop = 2
vim.bo.expandtab = true

View file

@ -13,6 +13,14 @@
prefer-no-csd = true; prefer-no-csd = true;
screenshot-path = "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"; screenshot-path = "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png";
workspaces = {
"master" = {};
"project" = {};
"remote" = {};
"info" = {};
"bg" = {};
};
spawn-at-startup = [ spawn-at-startup = [
{argv = ["waybar"];} {argv = ["waybar"];}
{argv = ["dunst"];} {argv = ["dunst"];}

View file

@ -151,24 +151,24 @@ in {
"Mod+Ctrl+Shift+WheelScrollDown".action = move-column-right; "Mod+Ctrl+Shift+WheelScrollDown".action = move-column-right;
"Mod+Ctrl+Shift+WheelScrollUp".action = move-column-left; "Mod+Ctrl+Shift+WheelScrollUp".action = move-column-left;
"Mod+1".action = focus-workspace 1; "Mod+1".action = focus-workspace "master";
"Mod+2".action = focus-workspace 2; "Mod+2".action = focus-workspace "project";
"Mod+3".action = focus-workspace 3; "Mod+3".action = focus-workspace "remote";
"Mod+4".action = focus-workspace 4; "Mod+4".action = focus-workspace "info";
"Mod+5".action = focus-workspace 5; "Mod+5".action = focus-workspace 6;
"Mod+6".action = focus-workspace 6; "Mod+6".action = focus-workspace 7;
"Mod+7".action = focus-workspace 7; "Mod+7".action = focus-workspace 8;
"Mod+8".action = focus-workspace 8; "Mod+8".action = focus-workspace 9;
"Mod+9".action = focus-workspace 9; "Mod+9".action = focus-workspace "bg";
"Mod+Shift+1".action.move-column-to-workspace = 1; "Mod+Shift+1".action.move-column-to-workspace = "master";
"Mod+Shift+2".action.move-column-to-workspace = 2; "Mod+Shift+2".action.move-column-to-workspace = "project";
"Mod+Shift+3".action.move-column-to-workspace = 3; "Mod+Shift+3".action.move-column-to-workspace = "remote";
"Mod+Shift+4".action.move-column-to-workspace = 4; "Mod+Shift+4".action.move-column-to-workspace = "info";
"Mod+Shift+5".action.move-column-to-workspace = 5; "Mod+Shift+5".action.move-column-to-workspace = 6;
"Mod+Shift+6".action.move-column-to-workspace = 6; "Mod+Shift+6".action.move-column-to-workspace = 7;
"Mod+Shift+7".action.move-column-to-workspace = 7; "Mod+Shift+7".action.move-column-to-workspace = 8;
"Mod+Shift+8".action.move-column-to-workspace = 8; "Mod+Shift+8".action.move-column-to-workspace = 9;
"Mod+Shift+9".action.move-column-to-workspace = 9; "Mod+Shift+9".action.move-column-to-workspace = "bg";
"Mod+BracketLeft".action = consume-or-expel-window-left; "Mod+BracketLeft".action = consume-or-expel-window-left;
"Mod+BracketRight".action = consume-or-expel-window-right; "Mod+BracketRight".action = consume-or-expel-window-right;

View file

@ -84,9 +84,52 @@
app-id = "^wechat$"; app-id = "^wechat$";
title = "^$"; title = "^$";
} }
{
app-id = "^CherryStudio$";
title = "^Cherry Studio Quick Assistant$";
}
]; ];
open-floating = true; open-floating = true;
} }
{
matches = [
{app-id = "^firefox$";}
];
open-on-workspace = "master";
}
{
matches = [
{app-id = "^code$";}
{app-id = "^dev.zed.Zed$";}
{app-id = "^Vitis IDE$";}
{app-id = "^Vivado$";}
];
open-on-workspace = "project";
}
{
matches = [
{app-id = "^org.kde.krdc$";}
{app-id = "^\.virt-manager-wrapped$";}
{title = "^🌐 ssh.*";}
];
open-on-workspace = "remote";
}
{
matches = [
{app-id = "^org.telegram.desktop$";}
{app-id = "^wechat$";}
{app-id = "^QQ$";}
{app-id = "^io.github.kukuruzka165.materialgram$";}
{app-id = "^thunderbird$";}
];
open-on-workspace = "info";
}
{
matches = [
{app-id = "^feishin$";}
];
open-on-workspace = "bg";
}
]; ];
}; };
} }

View file

@ -15,6 +15,7 @@ in {
imagemagick imagemagick
]; ];
}; };
home.packages = with pkgs; [lua-language-server];
programs.fish.shellAbbrs = nvimAlias; programs.fish.shellAbbrs = nvimAlias;
programs.bash.shellAliases = nvimAlias; programs.bash.shellAliases = nvimAlias;
programs.zsh.shellAliases = nvimAlias; programs.zsh.shellAliases = nvimAlias;