Skip to content

Commit

Permalink
Fix nm-applet focus stealing
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin Kharin <[email protected]>
  • Loading branch information
remimimimimi committed Oct 23, 2024
1 parent 5d5ae6d commit 0e9a730
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/desktop/graphics/labwc.config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ let
audio-ctrl = pkgs.callPackage ../../../packages/audio-ctrl { };
ghaf-screenshot = pkgs.callPackage ../../../packages/ghaf-screenshot { };
gtklockStyle = pkgs.callPackage ./styles/lock-style.nix { };
lockCmd = "${pkgs.gtklock}/bin/gtklock -s ${gtklockStyle}";

kill-nm-applet = pkgs.writeScriptBin "kill-nm-applet" "${pkgs.procps}/bin/pkill nm-launcher";
# We kill nm-applet after every screen lock to prevent stealing focus from the lock screen, otherwise user is unable to login afterwards. As nm-applet is managed by systemd service it automatically restarts after every kill.
lockCmd = "${pkgs.gtklock}/bin/gtklock -s ${gtklockStyle} -L ${kill-nm-applet}/bin/kill-nm-applet";

ghaf-launcher = pkgs.callPackage ./ghaf-launcher.nix { inherit config pkgs; };
autostart = pkgs.writeShellApplication {
name = "labwc-autostart";
Expand Down

0 comments on commit 0e9a730

Please sign in to comment.