nixcfg/homes/aly/windowManagers/laptop.nix

37 lines
1.3 KiB
Nix

{
config,
lib,
pkgs,
...
}: {
wayland.windowManager = {
sway.config = {
assigns = {
"workspace 1:web" = [{app_id = "firefox";} {app_id = "brave-browser";}];
"workspace 2:note" = [{app_id = "obsidian";}];
"workspace 3:code" = [{app_id = "codium-url-handler";} {app_id = "dev.zed.Zed";}];
"workspace 4:mail" = [{app_id = "thunderbird";}];
"workspace 5:work" = [{app_id = "firework";}];
};
startup = [
{command = "sleep 2 && ${lib.getExe' config.wayland.windowManager.sway.package "swaymsg"} workspace 1:web";}
];
};
hyprland.settings = {
exec-once = [
"sleep 2 && hyprctl dispatch workspace 2 && sleep 2 && hyprctl dispatch workspace 3 && sleep 2 && hyprctl dispatch workspace 4 && sleep 2 && hyprctl dispatch workspace 1;"
];
workspace = [
"1,defaultName:web,on-created-empty:${lib.getExe config.ar.home.defaultApps.webBrowser}"
"2,defaultName:note,on-created-empty:${lib.getExe' pkgs.obsidian "obsidian"}"
"3,defaultName:code,on-created-empty:${lib.getExe config.ar.home.defaultApps.editor}"
"4,defaultName:mail,on-created-empty:${lib.getExe pkgs.thunderbird}"
"special:magic,on-created-empty:${lib.getExe pkgs.fractal}"
];
};
};
}