diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-03-24 11:11:11 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-03-24 11:11:11 -0400 |
| commit | 38ad11d7f3f5614cc8a55328adcf449b41ebc617 (patch) | |
| tree | 0f89f5ccac3ada8ea5175ff02345da30ab2b989f /modules/user/desktop/sessions/sway.nix | |
| parent | cad9638875c04122b04d47242ddfc76e21e77029 (diff) | |
settle on sway
Diffstat (limited to 'modules/user/desktop/sessions/sway.nix')
| -rw-r--r-- | modules/user/desktop/sessions/sway.nix | 86 |
1 files changed, 79 insertions, 7 deletions
diff --git a/modules/user/desktop/sessions/sway.nix b/modules/user/desktop/sessions/sway.nix index e853a10..87c03c1 100644 --- a/modules/user/desktop/sessions/sway.nix +++ b/modules/user/desktop/sessions/sway.nix @@ -2,10 +2,12 @@ config, lib, options, + pkgs, ... }: { config = { + programs.foot.enable = lib.mkDefault config.desktop.sessions.sway.enable; wayland.windowManager.sway = { enable = lib.mkDefault config.desktop.sessions.sway.enable; config = { @@ -50,7 +52,7 @@ }; fonts = { - names = [ "Fira Mono" ]; + names = [ "Fira Code" ]; size = 8.0; }; @@ -78,7 +80,7 @@ colors = { focused = { - background = "#1e1e2e"; + background = "#cba6f7"; border = "#cba6f7"; childBorder = "#cba6f7"; indicator = "#f5c2e7"; @@ -86,7 +88,7 @@ }; focusedInactive = { - background = "#1e1e2e"; + background = "#585b70"; border = "#585b70"; childBorder = "#585b70"; indicator = "#585b70"; @@ -94,7 +96,7 @@ }; unfocused = { - background = "#1e1e2e"; + background = "#313244"; border = "#313244"; childBorder = "#313244"; indicator = "#313244"; @@ -102,7 +104,7 @@ }; urgent = { - background = "#1e1e2e"; + background = "#f38ba8"; border = "#f38ba8"; childBorder = "#f38ba8"; indicator = "#f38ba8"; @@ -121,7 +123,7 @@ focus.followMouse = false; fonts = { - names = [ "Fira Mono" ]; + names = [ "Fira Code" ]; size = 8.0; }; @@ -131,14 +133,84 @@ }; input = { - "type:touchpad" = { + "*" = { accel_profile = "flat"; + }; + + "type:touchpad" = { drag = "enabled"; dwt = "enabled"; natural_scroll = "enabled"; tap = "enabled"; }; }; + + keybindings = + let + mod = config.wayland.windowManager.sway.config.modifier; + terminal = "${pkgs.foot}/bin/foot"; + in + { + "${mod}+Return" = "exec ${terminal}"; + "${mod}+Shift+Q" = "exit"; + "${mod}+Q" = "kill"; + "${mod}+1" = "workspace 1"; + "${mod}+2" = "workspace 2"; + "${mod}+3" = "workspace 3"; + "${mod}+4" = "workspace 4"; + "${mod}+5" = "workspace 5"; + "${mod}+6" = "workspace 6"; + "${mod}+7" = "workspace 7"; + "${mod}+8" = "workspace 8"; + "${mod}+9" = "workspace 9"; + "${mod}+F" = "floating toggle"; + "${mod}+H" = "focus left"; + "${mod}+J" = "focus down"; + "${mod}+K" = "focus up"; + "${mod}+L" = "focus right"; + "${mod}+Shift+H" = "move left"; + "${mod}+Shift+J" = "move down"; + "${mod}+Shift+K" = "move up"; + "${mod}+Shift+L" = "move right"; + "${mod}+Equal" = "resize grow width"; + "${mod}+Minus" = "resize shrink width"; + "${mod}+Shift+Equal" = "resize grow height"; + "${mod}+Shift+Minus" = "resize shrink height"; + "${mod}+P" = "focus parent"; + "${mod}+Shift+F" = "fullscreen"; + "${mod}+V" = "splitt"; + "${mod}+G" = "layout toggle tabbed split"; + "${mod}+S" = "sticky toggle"; + }; + + modifier = "Mod4"; + window = { + commands = [ + # TODO + ]; + + titlebar = false; + }; + + workspaceOutputAssign = [ + { + output = "eDP-1"; + workspace = "1"; + } + { + output = "DP-1"; + workspace = "1"; + } + { + output = "DP-2"; + workspace = "2"; + } + ]; + }; + + swaynag = { + enable = lib.mkDefault config.desktop.sessions.sway.enable; + settings = lib.mkDefault { }; }; }; }; |
