forked from colonelpanic/dotfiles
Fix chrome tab handling with chromix
This commit is contained in:
@@ -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"
|
||||
|
3
dotfiles/lib/bin/split_current_chrome_tab.sh
Executable file
3
dotfiles/lib/bin/split_current_chrome_tab.sh
Executable 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
|
@@ -1,5 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
sleep .6
|
||||
xdotool key --clearmodifiers Escape
|
||||
xdotool key --clearmodifiers Tab
|
||||
xdotool key --clearmodifiers "W"
|
@@ -1,4 +0,0 @@
|
||||
#!/usr/bin/env zsh
|
||||
split_out.sh
|
||||
sleep .2
|
||||
xdotool key --clearmodifiers "Shift_L+Super_L+z"
|
@@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
echo $1
|
||||
chromix-too raw chrome.windows.create '{"tabId": '"$1}"
|
||||
|
Reference in New Issue
Block a user