diff --git a/modules/home-manager/sway.nix b/modules/home-manager/sway.nix index 08a63df..0d9d7ba 100644 --- a/modules/home-manager/sway.nix +++ b/modules/home-manager/sway.nix @@ -44,6 +44,7 @@ bg = "'${bg1080vert}' fit"; }; }; + input = { "*" = { xkb_layout = "de"; @@ -63,6 +64,7 @@ map_to_output = "'AU Optronics 0x4B2D Unknown'"; }; }; + modifier = "Mod4"; keybindings = let modifier = config.wayland.windowManager.sway.config.modifier; @@ -93,6 +95,8 @@ # custom pause mode similar to typical system shutdown menus "${modifier}+F12" = "mode pause-break"; }; + menu = "${pkgs.tofi}/bin/tofi-drun | ${pkgs.findutils}/bin/xargs swaymsg exec --"; + # use foot as default terminal terminal = "foot"; assigns = { @@ -101,11 +105,12 @@ "msg" = [{app_id = "org.keepassxc.KeePassXC";}]; }; bars = []; - menu = "${pkgs.tofi}/bin/tofi-drun | ${pkgs.findutils}/bin/xargs swaymsg exec --"; + fonts = { names = ["FiraCode Nerd Font"]; size = 11.0; }; + modes = { pause-break = { e = "exec --no-startup-id swaymsg exit, mode default"; @@ -116,6 +121,7 @@ Escape = "mode default"; }; }; + startup = [ {command = "dbus-sway-environment";} {command = "configure-gtk";} @@ -123,6 +129,7 @@ {command = "${pkgs.waybar}/bin/waybar";} {command = "${pkgs.foot}/bin/foot -a foot-startup";} ]; + defaultWorkspace = "main"; workspaceAutoBackAndForth = true; workspaceOutputAssign = [ @@ -147,6 +154,54 @@ output = ["DP-4" "HDMI-A-1" "eDP-1"]; } ]; + + colors = { + background = "#00000000"; + focused = { + border = "#00FFEE"; + background = "#4477AA"; + text = "#F0F0F0"; + childBorder = "#00FFEE"; + indicator = "#00AA88"; + }; + focusedInactive = { + border = "#626262"; + background = "#444444"; + text = "#F0F0F0"; + childBorder = "#626262"; + indicator = "#00AA88"; + }; + placeholder = { + border = "#313131"; + background = "#222222"; + text = "#F0F0F0"; + childBorder = "#313131"; + indicator = "#005544"; + }; + unfocused = { + border = "#313131"; + background = "#222222"; + text = "#F0F0F0"; + childBorder = "#313131"; + indicator = "#00AA88"; + }; + urgent = { + border = "#FF3131"; + background = "#882222"; + text = "#F0F0F0"; + childBorder = "#FF3131"; + indicator = "#00AA88"; + }; + }; + + focus.mouseWarping = true; + + gaps = { + inner = 5; + smartGaps = true; + smartBorders = "no_gaps"; + }; + window.titlebar = false; }; };