From 6ad4d3dfd32b569f9485d24f80a768ed3ca19e46 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Thu, 29 Jan 2026 00:47:07 -0500 Subject: improve init and sway --- scripts/open-emacs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/open-emacs') diff --git a/scripts/open-emacs b/scripts/open-emacs index 92272df..2f63efd 100755 --- a/scripts/open-emacs +++ b/scripts/open-emacs @@ -6,7 +6,7 @@ emacs_attached() { if emacs_attached; then # focus emacs - swaymsg [con_id="$(swaymsg -t get_tree | jq -r '.nodes[1].nodes[].nodes[] | .. | (.id|tostring) + " " + .name?' | grep -e "[0-9]* ." | grep Emacs | awk '{print $1}')"] focus + swaymsg [con_id="$(swaymsg -t get_tree | jq -r '.nodes[1].nodes[].nodes[] | .. | (.id|tostring) + " " + .app_id?' | grep emacs | awk '{print $1}')"] focus else emacsclient -c fi -- cgit v1.2.3