mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 22:31:53 -05:00
Aly Raffauf
00b14f28aa
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
44 lines
1.5 KiB
Nix
44 lines
1.5 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.ar.home.laptopMode {
|
|
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 = "betterbird";} {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;"
|
|
];
|
|
|
|
windowrulev2 = [
|
|
"workspace 1,class:(brave-browser)"
|
|
"workspace 5,class:(firework)"
|
|
];
|
|
|
|
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 config.programs.thunderbird.package}"
|
|
"special:magic,on-created-empty:${lib.getExe pkgs.fractal}"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|