Compare commits
2 Commits
afc8c754fe
...
master
Author | SHA1 | Date | |
---|---|---|---|
9b6d487e36 | |||
3abf9ddadc |
@@ -3,9 +3,9 @@
|
||||
after-startup-command = []
|
||||
|
||||
exec-on-workspace-change = [
|
||||
'/bin/bash',
|
||||
'-c',
|
||||
'~/.config/aerospace/pip-move.sh',
|
||||
'/bin/bash',
|
||||
'-c',
|
||||
'~/.config/aerospace/pip-move.sh',
|
||||
]
|
||||
|
||||
# Start AeroSpace at login
|
||||
@@ -203,11 +203,12 @@ alt-shift-semicolon = 'mode service'
|
||||
# 'service' binding mode declaration.
|
||||
# See: https://nikitabobko.github.io/AeroSpace/guide#binding-modes
|
||||
[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
|
||||
f = [
|
||||
'layout floating tiling',
|
||||
'mode main',
|
||||
'layout floating tiling',
|
||||
'mode main',
|
||||
] # Toggle between floating and tiling layout
|
||||
backspace = ['close-all-windows-but-current', 'mode main']
|
||||
|
||||
@@ -223,7 +224,15 @@ down = 'volume down'
|
||||
up = 'volume up'
|
||||
shift-down = ['volume set 0', 'mode main']
|
||||
|
||||
|
||||
# Firefox Picture-in-Picture
|
||||
[[on-window-detected]]
|
||||
if.app-id = 'org.mozilla.firefox'
|
||||
if.window-title-regex-substring = 'Picture-in-Picture'
|
||||
run = 'layout floating'
|
||||
|
||||
# WarnWetter
|
||||
[[on-window-detected]]
|
||||
if.app-id = 'de.dwd.warnapp'
|
||||
if.window-title-regex-substring = 'WarnWetter'
|
||||
run = 'layout floating'
|
||||
|
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