Some set-up re: desktop apps

This commit is contained in:
Natsu Kagami 2023-04-04 20:27:00 +02:00
parent fc6f9f8987
commit bd54c41c33
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
2 changed files with 49 additions and 16 deletions

View file

@ -144,6 +144,7 @@ in
{ command = "systemctl --user restart waybar"; always = true; }
# Startup programs
{ command = "${cfg.browser}"; }
{ command = "evolution"; } # Rely on system package with plugins
{ command = "env PYTHONPATH=$(python -m site --user-site) ${pkgs.ulauncher}/bin/ulauncher --hide-window --no-window-shadow"; }
] ++ (if cfg.discord != null then [
{ command = "${cfg.discord}"; }
@ -273,15 +274,17 @@ in
{ class = "^firefox$"; }
];
"${builtins.elemAt workspaces 1}" = [
{ class = "^(d|D)iscord$"; }
{ class = "^((d|D)iscord|((A|a)rmcord))$"; }
];
"${builtins.elemAt workspaces 3}" = [
{ app_id = "kitty_ncmpcpp"; }
"📧 Email" = [
{ app_id = "evolution"; }
];
};
# Commands
window.commands = [
{ criteria = { title = ".*"; }; command = "inhibit_idle fullscreen"; }
{ criteria = { app_id = ".*float.*"; }; command = "floating enable"; }
{ criteria = { class = ".*float.*"; }; command = "floating enable"; }
];
# Focus
focus.followMouse = true;