diff options
| author | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-03-22 21:13:18 -0400 |
|---|---|---|
| committer | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-03-22 21:13:18 -0400 |
| commit | 320f194acd371b401168d0c9aa399918c682c8de (patch) | |
| tree | 75070a5fcc7ff6c20f7bcc03994c5291bfbb6cca /modules/sway/default.nix | |
| parent | 11631fbc5db8954aa5108a371dbf924ef3094141 (diff) | |
| download | home-320f194acd371b401168d0c9aa399918c682c8de.tar.gz | |
foo
Diffstat (limited to 'modules/sway/default.nix')
| -rw-r--r-- | modules/sway/default.nix | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/modules/sway/default.nix b/modules/sway/default.nix index a0348f3..8ea4e38 100644 --- a/modules/sway/default.nix +++ b/modules/sway/default.nix @@ -12,14 +12,16 @@ in }; startup = lib.mkOption { type = lib.types.listOf (lib.types.submodule { - command = lib.mkOption { - type = lib.types.string; - description = "Command to be executed on startup."; - }; - always = lib.mkOption { - type = lib.types.bool; - default = false; - description = "Whether to run command on each restart"; + options = { + command = lib.mkOption { + type = lib.types.string; + description = "Command to be executed on startup."; + }; + always = lib.mkOption { + type = lib.types.bool; + default = false; + description = "Whether to run command on each restart"; + }; }; }); default = [ ]; @@ -28,9 +30,11 @@ in }; config = { - home.packages = with pkgs; [(writeShellScriptBin "browser" '' - swaymsg 'set $PROP newcont:tabbed ; exec qutebrowser --target window' - '')]; + home.packages = with pkgs; [ + (writeShellScriptBin "browser" '' + swaymsg 'set $PROP newcont:tabbed ; exec qutebrowser --target window' + '') + ]; wayland.windowManager.sway = lib.mkIf cfg.enable { enable = true; package = if cfg.wrapWithNixGL then config.lib.nixGL.wrap pkgs.sway else pkgs.sway; @@ -49,7 +53,8 @@ in }; terminal = "${cfg.terminal}"; - menu = ''wmenu-run -n 4c4c4c -N 0d0d0d -s 8aac8b -S 0d0d0d -l 10 -f "ComicShannsMono Nerd Font Mono 10"''; + # menu = ''wmenu-run -n 4c4c4c -N 0d0d0d -s 8aac8b -S 0d0d0d -l 10 -f "ComicShannsMono Nerd Font Mono 10"''; + menu = "tofi-run | xargs swaymsg exec"; defaultWorkspace = "workspace number 1"; |