no error on no windows
This commit is contained in:
parent
c4b963cd7e
commit
8eb7008aeb
|
@ -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,".")
|
||||
|
|
Loading…
Reference in New Issue
Block a user