X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=i3-emacs;h=6b4cce2f0c35e3d6d3bae22598a537bcc45f7906;hb=989554cab0d0c59d1aab20496ba9550acd17e6e6;hp=f3eb1164a5ad0b5e30df34578e61f5acbadc285a;hpb=3342374657bd712f14cd772378b23d2bca3382cb;p=distro-setup diff --git a/i3-emacs b/i3-emacs index f3eb116..6b4cce2 100755 --- a/i3-emacs +++ b/i3-emacs @@ -21,7 +21,7 @@ # limitations under the License. -id=$(i3-msg -t get_tree | jq -e '.. | select(.name?) | select(.name | test("^e-iak")).id ') +id=$(i3-msg -t get_tree | jq -e '.. | select(.name?) | select(.name | test("^e-iak ")).id') if [[ $id ]]; then h=$(i3-msg -t get_tree | jq -r ".. | select(.focused? == true) | .rect.height") @@ -32,7 +32,7 @@ if [[ $id ]]; then if [[ $cur_workspace == 2 && $h ]]; then i3-msg "swap container with con_id $id; [con_id=\"$id\"] focus" else - i3-msg '[con_id="'$id'"] move workspace current' + i3-msg "[con_id=\"$id\"] focus" fi else