aerospace: add pip move script
This commit is contained in:
@@ -203,7 +203,8 @@ alt-shift-semicolon = 'mode service'
|
|||||||
# 'service' binding mode declaration.
|
# 'service' binding mode declaration.
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/guide#binding-modes
|
# See: https://nikitabobko.github.io/AeroSpace/guide#binding-modes
|
||||||
[mode.service.binding]
|
[mode.service.binding]
|
||||||
esc = ['reload-config', 'mode main']
|
esc = ['mode main']
|
||||||
|
shift-r = ['reload-config', 'mode main']
|
||||||
r = ['flatten-workspace-tree', 'mode main'] # reset layout
|
r = ['flatten-workspace-tree', 'mode main'] # reset layout
|
||||||
f = [
|
f = [
|
||||||
'layout floating tiling',
|
'layout floating tiling',
|
||||||
|
11
.config/aerospace/pip-move.sh
Executable file
11
.config/aerospace/pip-move.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
current_monitor=$(aerospace list-monitors --focused | awk '{print $1}')
|
||||||
|
current_workspace=$(aerospace list-workspaces --focused)
|
||||||
|
win_list=$(aerospace list-windows --monitor "$current_monitor" | grep -E "(Picture-in-Picture|Picture in Picture)" | awk '{print $1}')
|
||||||
|
|
||||||
|
echo "$win_list" | while IFS= read -r number; do
|
||||||
|
echo "Processing number: $number"
|
||||||
|
aerospace move-node-to-workspace --window-id "$number" "$current_workspace" </dev/null
|
||||||
|
echo "continue"
|
||||||
|
done
|
Reference in New Issue
Block a user