diff --git a/bin/i3-companion b/bin/i3-companion index 7059737..32478f8 100755 --- a/bin/i3-companion +++ b/bin/i3-companion @@ -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}"') diff --git a/bin/polybar b/bin/polybar index cc456a7..a15a32a 100755 --- a/bin/polybar +++ b/bin/polybar @@ -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 & ;;