From 73b795635ced1f1fb31c229b13e805845a8cc911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Sun, 10 Mar 2024 10:55:16 +0100 Subject: [PATCH] 161 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * --- modules/home-manager/sway.nix | 57 ++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) 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; }; };