configure sway (this is a huge rice)

This commit is contained in:
Fabian Montero 2025-08-07 16:48:34 -06:00
parent 4316165e9d
commit 5d1408254a
Signed by untrusted user: fabian
GPG key ID: 1FFAC35E1798174F
16 changed files with 381 additions and 799 deletions

View file

@ -10,14 +10,6 @@ in {
options.local.apps.firefox = {
enable = mkEnableOption "firefox settings";
workspace = mkOption {
type = types.nullOr types.str;
default = null;
description = ''
i3 Workspace in which Firefox should open. If not set, Firefox will not open at startup
'';
};
makeDefaultBrowser = mkOption {
type = types.bool;
default = true;
@ -30,10 +22,6 @@ in {
config = mkIf cfg.enable (mkMerge [
{
programs.firefox.enable = true;
xsession.windowManager.i3.config.startup = optional (cfg.workspace != null) {
command = "${lib.getExe pkgs.i3-gaps} 'workspace ${cfg.workspace}; exec ${lib.getExe pkgs.firefox}'";
};
}
(mkIf cfg.makeDefaultBrowser {