From ed3e3fe949879754e9efdfbd856af87d896dcc0d Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Mon, 30 May 2022 16:21:13 +0200 Subject: [PATCH] Start waybar from systemd --- home-manager/modules/sway/default.nix | 6 +----- home-manager/modules/waybar/default.nix | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/home-manager/modules/sway/default.nix b/home-manager/modules/sway/default.nix index 11a0a8d..1976ff2 100644 --- a/home-manager/modules/sway/default.nix +++ b/home-manager/modules/sway/default.nix @@ -24,11 +24,7 @@ in "2" = [{ app_id = "Alacritty"; } { app_id = "foot"; }]; "3" = [{ class = "Code"; }]; }; - bars = [ - { - command = "${pkgs.waybar}/bin/waybar"; - } - ]; + bars = [ ]; # Dracula theme colors = { diff --git a/home-manager/modules/waybar/default.nix b/home-manager/modules/waybar/default.nix index 6a1a54f..94bc9d8 100644 --- a/home-manager/modules/waybar/default.nix +++ b/home-manager/modules/waybar/default.nix @@ -20,6 +20,8 @@ in config = mkIf cfg.enable { programs.waybar = { enable = true; + systemd.enable = true; + settings = [ { layer = "top";