From 37e6c5d0c7131585ca5afb97dd4e4a8f3342ddd7 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Thu, 24 Oct 2024 17:38:13 +0700 Subject: [PATCH] vesktop: fix focus script for Discord --- home/programs/discord.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/programs/discord.nix b/home/programs/discord.nix index a842508..ba5a831 100644 --- a/home/programs/discord.nix +++ b/home/programs/discord.nix @@ -30,8 +30,8 @@ in home.file.".config/autostart/discord.sh" = lib.mkIf cfg.autostart { source = autostartScriptFile; }; services.swaync.settings.scripts._10-discord = { - app-name = "(?=discord|vesktop)"; - exec = "hyprctl dispatch focuswindow $SWAYNC_APP_NAME"; + app-name = "[Vv]esktop"; + exec = "hyprctl dispatch focuswindow vesktop"; run-on = "action"; }; };