no error on no windows

berry
Rachel Lambda Samuelsson 2024-03-12 14:56:28 +01:00
parent c4b963cd7e
commit 8eb7008aeb
1 changed files with 2 additions and 2 deletions

View File

@ -102,10 +102,10 @@ in rec {
pkgs.gawk
pkgs.coreutils-full
]}"
current_display=$(wmctrl -d|awk '/*/ {print $1}')
current_display=$(wmctrl -d 2>/dev/null |awk '/*/ {print $1}')
out=$(
wmctrl -lx |
wmctrl -lx 2>/dev/null |
awk -v current_display="$current_display" '{
if ($2==current_display) {
split($3,window_title,".")