mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
niri: workspaces
This commit is contained in:
parent
d59329969d
commit
25a8b45d79
6 changed files with 77 additions and 18 deletions
|
|
@ -25,3 +25,7 @@ indent_style = space
|
|||
# Empty ruleset to skip global settings
|
||||
# charset = gbk # Not available
|
||||
# end_of_line = crlf
|
||||
|
||||
[*.nix]
|
||||
indent_size = 2
|
||||
|
||||
|
|
|
|||
3
home/dot_config/nvim/ftplugin/nix.lua
Normal file
3
home/dot_config/nvim/ftplugin/nix.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
vim.bo.shiftwidth = 2
|
||||
vim.bo.softtabstop = 2
|
||||
vim.bo.expandtab = true
|
||||
|
|
@ -13,6 +13,14 @@
|
|||
prefer-no-csd = true;
|
||||
screenshot-path = "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png";
|
||||
|
||||
workspaces = {
|
||||
"master" = {};
|
||||
"project" = {};
|
||||
"remote" = {};
|
||||
"info" = {};
|
||||
"bg" = {};
|
||||
};
|
||||
|
||||
spawn-at-startup = [
|
||||
{argv = ["waybar"];}
|
||||
{argv = ["dunst"];}
|
||||
|
|
|
|||
|
|
@ -151,24 +151,24 @@ in {
|
|||
"Mod+Ctrl+Shift+WheelScrollDown".action = move-column-right;
|
||||
"Mod+Ctrl+Shift+WheelScrollUp".action = move-column-left;
|
||||
|
||||
"Mod+1".action = focus-workspace 1;
|
||||
"Mod+2".action = focus-workspace 2;
|
||||
"Mod+3".action = focus-workspace 3;
|
||||
"Mod+4".action = focus-workspace 4;
|
||||
"Mod+5".action = focus-workspace 5;
|
||||
"Mod+6".action = focus-workspace 6;
|
||||
"Mod+7".action = focus-workspace 7;
|
||||
"Mod+8".action = focus-workspace 8;
|
||||
"Mod+9".action = focus-workspace 9;
|
||||
"Mod+Shift+1".action.move-column-to-workspace = 1;
|
||||
"Mod+Shift+2".action.move-column-to-workspace = 2;
|
||||
"Mod+Shift+3".action.move-column-to-workspace = 3;
|
||||
"Mod+Shift+4".action.move-column-to-workspace = 4;
|
||||
"Mod+Shift+5".action.move-column-to-workspace = 5;
|
||||
"Mod+Shift+6".action.move-column-to-workspace = 6;
|
||||
"Mod+Shift+7".action.move-column-to-workspace = 7;
|
||||
"Mod+Shift+8".action.move-column-to-workspace = 8;
|
||||
"Mod+Shift+9".action.move-column-to-workspace = 9;
|
||||
"Mod+1".action = focus-workspace "master";
|
||||
"Mod+2".action = focus-workspace "project";
|
||||
"Mod+3".action = focus-workspace "remote";
|
||||
"Mod+4".action = focus-workspace "info";
|
||||
"Mod+5".action = focus-workspace 6;
|
||||
"Mod+6".action = focus-workspace 7;
|
||||
"Mod+7".action = focus-workspace 8;
|
||||
"Mod+8".action = focus-workspace 9;
|
||||
"Mod+9".action = focus-workspace "bg";
|
||||
"Mod+Shift+1".action.move-column-to-workspace = "master";
|
||||
"Mod+Shift+2".action.move-column-to-workspace = "project";
|
||||
"Mod+Shift+3".action.move-column-to-workspace = "remote";
|
||||
"Mod+Shift+4".action.move-column-to-workspace = "info";
|
||||
"Mod+Shift+5".action.move-column-to-workspace = 6;
|
||||
"Mod+Shift+6".action.move-column-to-workspace = 7;
|
||||
"Mod+Shift+7".action.move-column-to-workspace = 8;
|
||||
"Mod+Shift+8".action.move-column-to-workspace = 9;
|
||||
"Mod+Shift+9".action.move-column-to-workspace = "bg";
|
||||
|
||||
"Mod+BracketLeft".action = consume-or-expel-window-left;
|
||||
"Mod+BracketRight".action = consume-or-expel-window-right;
|
||||
|
|
|
|||
|
|
@ -84,9 +84,52 @@
|
|||
app-id = "^wechat$";
|
||||
title = "^图片和视频$";
|
||||
}
|
||||
{
|
||||
app-id = "^CherryStudio$";
|
||||
title = "^Cherry Studio Quick Assistant$";
|
||||
}
|
||||
];
|
||||
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";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ in {
|
|||
imagemagick
|
||||
];
|
||||
};
|
||||
home.packages = with pkgs; [lua-language-server];
|
||||
programs.fish.shellAbbrs = nvimAlias;
|
||||
programs.bash.shellAliases = nvimAlias;
|
||||
programs.zsh.shellAliases = nvimAlias;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue