mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-21 09:35:40 +02:00
i3-companion: avoid leaking window name in logs
This commit is contained in:
parent
ce25d4d970
commit
0f4e668b51
2 changed files with 3 additions and 3 deletions
|
@ -357,7 +357,7 @@ async def worksplace_exclusive(i3, event):
|
||||||
|
|
||||||
# Create a new workspace and move the window here
|
# Create a new workspace and move the window here
|
||||||
num = await _new_workspace(i3)
|
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}"')
|
await w.command(f'move container to workspace number "{num}"')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@ export HEIGHT=$((20 * DPI / 96))
|
||||||
MONITORS=$(xrandr --current | awk '($0 ~ / connected / && $0 ~ / [0-9]+x[0-9]+\+/) {print $1}')
|
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=$(xrandr --current | awk '($0 ~ / connected primary / && $0 ~ / [0-9]+x[0-9]+\+/) {print $1; exit}')
|
||||||
PRIMARY=${PRIMARY:-${MONITORS%% *}}
|
PRIMARY=${PRIMARY:-${MONITORS%% *}}
|
||||||
NUMS=$(echo $MONITORS | wc -w)
|
|
||||||
case $NUMS in
|
case $(echo $MONITORS | wc -w) in
|
||||||
1)
|
1)
|
||||||
MONITOR=$PRIMARY polybar --reload alone &
|
MONITOR=$PRIMARY polybar --reload alone &
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue