From f831574d9c0c14979a4a79e857203c073686241d Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 4 May 2024 16:58:06 +0100 Subject: [PATCH] Sway configuration - Remove commented-out code. - Set colours. - Set the default workspace. --- lib/nixos/home-manager/modules/sway.nix | 60 ++++++++----------------- 1 file changed, 19 insertions(+), 41 deletions(-) diff --git a/lib/nixos/home-manager/modules/sway.nix b/lib/nixos/home-manager/modules/sway.nix index 1561615..ec13be7 100644 --- a/lib/nixos/home-manager/modules/sway.nix +++ b/lib/nixos/home-manager/modules/sway.nix @@ -1,40 +1,6 @@ { config, inputs, pkgs, ... }: { - # services.swayidle = { - # enable = true; - # - # events = [ - # { - # event = "before-sleep"; - # command = "${pkgs.swaylock}/bin/swaylock --daemonize --image ~/.config/wallpape - # /wallpaper.jpg"; - # } - # ]; - # }; - - # services.swayidle.timeouts = [ - # { - # timeout = 300; - # command = "${pkgs.swaylock}/bin/swaylock --daemonize --image ~/.config/wallpaper/wallpaper.jpg"; - # } - # - # { - # timeout = 600; - # command = "swaymsg 'output * dpms off'"; - # resumeCommand = "swaymsg 'output * dpms on'"; - # } - # ]; - - # programs.swaylock = { - # enable = true; - # - # settings = { - # daemonize = true; - # image = "~/.config/wallpaper/wallpaper.jpg"; - # }; - # }; - programs.i3status-rust = { enable = true; @@ -76,15 +42,15 @@ theme = { theme = "plain"; overrides = { - critical_bg = "#222222"; - good_bg = "#222222"; + critical_bg = "#121212"; + good_bg = "#121212"; good_fg = "#ffffff"; - idle_bg = "#222222"; + idle_bg = "#121212"; idle_fg = "#ffffff"; - info_bg = "#222222"; + info_bg = "#121212"; info_fg = "#ffffff"; - separator_bg = "#222222"; - warning_bg = "#222222"; + separator_bg = "#121212"; + warning_bg = "#121212"; warning_fg = "#ffffff"; }; }; @@ -99,7 +65,17 @@ config = { bars = [{ - colors.background = "#222222"; + colors = { + background = "#161616"; + separator = "#333333"; + statusline = "#ffffff"; + + focusedWorkspace = { + background = "#555555"; + border = "#444444"; + text = "#ffffff"; + }; + }; fonts = { names = [ "JetBrainsMono Nerd Font Mono" ]; @@ -111,6 +87,8 @@ trayPadding = 5; }]; + defaultWorkspace = "workspace number 1"; + gaps = { inner = 5; smartBorders = "on";