i3-companion: avoid leaking window name in logs

This commit is contained in:
Vincent Bernat 2021-07-15 20:52:32 +02:00
parent ce25d4d970
commit 0f4e668b51
2 changed files with 3 additions and 3 deletions

View file

@ -357,7 +357,7 @@ async def worksplace_exclusive(i3, event):
# Create a new workspace and move the window here
num = await _new_workspace(i3)
logger.info(f"move window {w.name} to workspace {num}")
logger.info(f"move window {w.window_class} to workspace {num}")
await w.command(f'move container to workspace number "{num}"')

View file

@ -6,8 +6,8 @@ export HEIGHT=$((20 * DPI / 96))
MONITORS=$(xrandr --current | awk '($0 ~ / connected / && $0 ~ / [0-9]+x[0-9]+\+/) {print $1}')
PRIMARY=$(xrandr --current | awk '($0 ~ / connected primary / && $0 ~ / [0-9]+x[0-9]+\+/) {print $1; exit}')
PRIMARY=${PRIMARY:-${MONITORS%% *}}
NUMS=$(echo $MONITORS | wc -w)
case $NUMS in
case $(echo $MONITORS | wc -w) in
1)
MONITOR=$PRIMARY polybar --reload alone &
;;