Compare commits

...

2 Commits

Author SHA1 Message Date
9b6d487e36 aerospace: make WarnWetter app floating 2025-08-02 07:54:30 +02:00
3abf9ddadc aerospace: add pip move script 2025-07-24 15:18:24 +02:00
2 changed files with 26 additions and 6 deletions

View File

@@ -203,7 +203,8 @@ 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',
@@ -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
View 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