diff options
Diffstat (limited to 'dotfiles/.scripts/swaygetcurrentwindow')
-rwxr-xr-x | dotfiles/.scripts/swaygetcurrentwindow | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dotfiles/.scripts/swaygetcurrentwindow b/dotfiles/.scripts/swaygetcurrentwindow new file mode 100755 index 0000000..e6403a6 --- /dev/null +++ b/dotfiles/.scripts/swaygetcurrentwindow @@ -0,0 +1,5 @@ +#!/bin/sh + +xydata=$(swaymsg -t get_tree | grep -B 5 '"focused": true' | head -n 4 | tr -d '\n\r' | sed -e 's/[^0-9,]//g' -e 's/,/ /2' -e 's/,/x/2') + +echo $xydata |