From 647423692c2ca0786f5a1abaafbd3755a64367d7 Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Sun, 26 Oct 2025 11:10:41 -0500 Subject: [PATCH] wip i3 --- flakes/common/hm_modules/de_i3/i3.nix | 8 ++++---- flakes/common/nix_modules/de_i3.nix | 19 +++++++++++++++++++ hosts/lio/i3_customizations.nix | 15 +++++++++++---- 3 files changed, 34 insertions(+), 8 deletions(-) diff --git a/flakes/common/hm_modules/de_i3/i3.nix b/flakes/common/hm_modules/de_i3/i3.nix index 3d186cb..9355719 100644 --- a/flakes/common/hm_modules/de_i3/i3.nix +++ b/flakes/common/hm_modules/de_i3/i3.nix @@ -82,10 +82,10 @@ }; bars = [ - { - position = "top"; - statusCommand = "${pkgs.i3status}/bin/i3status"; - } + # { + # position = "top"; + # statusCommand = "${pkgs.i3status}/bin/i3status"; + # } ]; startup = [ ]; diff --git a/flakes/common/nix_modules/de_i3.nix b/flakes/common/nix_modules/de_i3.nix index 39b4090..f93f778 100644 --- a/flakes/common/nix_modules/de_i3.nix +++ b/flakes/common/nix_modules/de_i3.nix @@ -48,4 +48,23 @@ }; hardware.graphics.enable = true; + + environment.systemPackages = with pkgs; [ + # xfce.xfce4-panel + # xfce.xfce4-session + # xfce.xfce4-settings + # xfce.xfce4-power-manager + # xfce.xfce4-pulseaudio-plugin + # xfce.xfce4-screenshooter + # xfce.xfce4-clipman-plugin + # xfce.xfce4-sensors-plugin + # xfce.xfce4-notifyd + pavucontrol + ]; + + # Applets/services for tray widgets + programs.nm-applet.enable = true; + services.blueman.enable = true; + services.upower.enable = true; + # xfce4-notifyd is provided as a package; XFCE runs it automatically } diff --git a/hosts/lio/i3_customizations.nix b/hosts/lio/i3_customizations.nix index b1845b6..b65a528 100644 --- a/hosts/lio/i3_customizations.nix +++ b/hosts/lio/i3_customizations.nix @@ -34,11 +34,18 @@ in let inherit (lib) mkAfter; in - { - xsession.windowManager.i3.config.startup = mkAfter i3ExtraOptions.startup; - xsession.windowManager.i3.extraConfig = mkAfter assignLines; + { + xsession.windowManager.i3.config.bars = lib.mkForce []; + xsession.windowManager.i3.config.startup = mkAfter (i3ExtraOptions.startup ++ [ + { command = "nm-applet"; } + { command = "blueman-applet"; } + { command = "xfce4-power-manager"; } + { command = "sh -c 'pgrep -x xfsettingsd >/dev/null || xfsettingsd'"; } + { command = "sh -c 'pgrep -x xfce4-panel >/dev/null || (sleep 0.5; xfce4-panel --disable-wm-check)'"; } + ]); + xsession.windowManager.i3.extraConfig = mkAfter assignLines; home.packages = [ pkgs.xwallpaper pkgs.xorg.xrandr ]; - } + } ) ]; };