diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2026-01-29 00:47:07 -0500 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2026-01-29 00:47:07 -0500 |
| commit | 6ad4d3dfd32b569f9485d24f80a768ed3ca19e46 (patch) | |
| tree | 6d0c6f671a87abc73a429df2344e9799eb57737c /scripts/open-emacs | |
| parent | f8778e805f014602a1bd4de287dcaf9585b2b1ee (diff) | |
improve init and sway
Diffstat (limited to 'scripts/open-emacs')
| -rwxr-xr-x | scripts/open-emacs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
