From 93f4cb09d7784da4db79ca73713805ce3655c012 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 4 May 2024 20:04:31 +0100 Subject: [PATCH] Revert "Sway configuration" This reverts commit f831574d9c0c14979a4a79e857203c073686241d. --- lib/nixos/home-manager/modules/sway.nix | 60 +++++++++++++++++-------- 1 file changed, 41 insertions(+), 19 deletions(-) diff --git a/lib/nixos/home-manager/modules/sway.nix b/lib/nixos/home-manager/modules/sway.nix index ec13be7..1561615 100644 --- a/lib/nixos/home-manager/modules/sway.nix +++ b/lib/nixos/home-manager/modules/sway.nix @@ -1,6 +1,40 @@ { 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; @@ -42,15 +76,15 @@ theme = { theme = "plain"; overrides = { - critical_bg = "#121212"; - good_bg = "#121212"; + critical_bg = "#222222"; + good_bg = "#222222"; good_fg = "#ffffff"; - idle_bg = "#121212"; + idle_bg = "#222222"; idle_fg = "#ffffff"; - info_bg = "#121212"; + info_bg = "#222222"; info_fg = "#ffffff"; - separator_bg = "#121212"; - warning_bg = "#121212"; + separator_bg = "#222222"; + warning_bg = "#222222"; warning_fg = "#ffffff"; }; }; @@ -65,17 +99,7 @@ config = { bars = [{ - colors = { - background = "#161616"; - separator = "#333333"; - statusline = "#ffffff"; - - focusedWorkspace = { - background = "#555555"; - border = "#444444"; - text = "#ffffff"; - }; - }; + colors.background = "#222222"; fonts = { names = [ "JetBrainsMono Nerd Font Mono" ]; @@ -87,8 +111,6 @@ trayPadding = 5; }]; - defaultWorkspace = "workspace number 1"; - gaps = { inner = 5; smartBorders = "on";