few fixes, mostly x related improvements
[distro-setup] / i3-emacs
index f3eb1164a5ad0b5e30df34578e61f5acbadc285a..6b4cce2f0c35e3d6d3bae22598a537bcc45f7906 100755 (executable)
--- 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