[Linux] Add scripts to interact with specific tabs
This commit is contained in:
parent
c451a8b01c
commit
15966d16f3
5
dotfiles/lib/bin/focus_tab_by_id.sh
Executable file
5
dotfiles/lib/bin/focus_tab_by_id.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/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}'
|
||||||
|
|
3
dotfiles/lib/bin/split_tab_by_id.sh
Executable file
3
dotfiles/lib/bin/split_tab_by_id.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
chromix-too raw chrome.windows.create '{"tabId": '"$1}"
|
Loading…
Reference in New Issue
Block a user