Fix chrome tab handling with chromix

This commit is contained in:
2017-05-07 23:35:01 -07:00
parent b1294ccd3b
commit 03d4ea76ac
7 changed files with 12 additions and 15 deletions

View File

@@ -1,5 +1,3 @@
#!/usr/bin/env sh
windowId=$(chromix-too raw chrome.tabs.update "$1" '{"active": true}' | jq .windowId)
chromix-too raw chrome.windows.update "$windowId" '{"focused": true}'
chromix-too focus "$1"

View File

@@ -0,0 +1,3 @@
#!/usr/bin/env zsh
chromix-too raw chrome.windows.getLastFocused '{"populate": true}' | jq -cM '.tabs[]' | jq 'select(.active)' | jq .id | xargs split_tab_by_id.sh

View File

@@ -1,5 +0,0 @@
#!/usr/bin/env sh
sleep .6
xdotool key --clearmodifiers Escape
xdotool key --clearmodifiers Tab
xdotool key --clearmodifiers "W"

View File

@@ -1,4 +0,0 @@
#!/usr/bin/env zsh
split_out.sh
sleep .2
xdotool key --clearmodifiers "Shift_L+Super_L+z"

View File

@@ -1,3 +1,4 @@
#!/usr/bin/env zsh
echo $1
chromix-too raw chrome.windows.create '{"tabId": '"$1}"