From 891a29feeb979cb011d29d1c4bfbf973902fe977 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 18 Jun 2024 02:49:30 +0000 Subject: [PATCH] nwg-panel: fix commands (like lock, shutdown) to not run through swaymsg --- hosts/common/programs/nwg-panel/common-settings.json | 7 +++++++ hosts/common/programs/nwg-panel/default.nix | 1 + 2 files changed, 8 insertions(+) create mode 100644 hosts/common/programs/nwg-panel/common-settings.json diff --git a/hosts/common/programs/nwg-panel/common-settings.json b/hosts/common/programs/nwg-panel/common-settings.json new file mode 100644 index 00000000..a5e162d7 --- /dev/null +++ b/hosts/common/programs/nwg-panel/common-settings.json @@ -0,0 +1,7 @@ +{ + "restart-on-display": true, + "restart-delay": 500, + "run-through-compositor": false, + "processes-background-only": true, + "processes-own-only": true +} diff --git a/hosts/common/programs/nwg-panel/default.nix b/hosts/common/programs/nwg-panel/default.nix index 50f74eea..a5919892 100644 --- a/hosts/common/programs/nwg-panel/default.nix +++ b/hosts/common/programs/nwg-panel/default.nix @@ -110,6 +110,7 @@ in src = ./style.css; inherit (cfg.config) fontSize clockFontSize; }; + fs.".config/nwg-panel/common-settings.json".symlink.target = ./common-settings.json; fs.".config/nwg-panel/config".symlink.target = pkgs.writers.writeJSON "config" (import ./config.nix { inherit (cfg.config) locker height windowIcon windowTitle workspaceHideEmpty workspaceNumbers; # component order matters, mostly for the drop-down.