Skip to content

Commit

Permalink
support vertically-aligned multi-monitor setups in lemonbar (#1982)
Browse files Browse the repository at this point in the history
* support vertically-aligned multi-monitor setups in lemonbar

* Fix expected args in lemonbar test
  • Loading branch information
s-ol authored and PH111P committed Sep 26, 2019
1 parent 25737d9 commit 2428f78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion powerline/bindings/lemonbar/powerline-lemonbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
bars = []

for screen in get_connected_xrandr_outputs(powerline.pl):
command = [args.bar_command, '-g', '{0}x{1}+{2}'.format(screen['width'], args.height, screen['x'])] + args.args[1:]
command = [args.bar_command, '-g', '{0}x{1}+{2}+{3}'.format(screen['width'], args.height, screen['x'], screen['y'])] + args.args[1:]
process = subprocess.Popen(command, stdin=subprocess.PIPE)
bars.append((screen['name'], process, int(screen['width']) / 5))

Expand Down
2 changes: 1 addition & 1 deletion tests/test_bar/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ else
if test "${script_args}" = "$args" ; then
script_args=
fi
expected_args="$command -g 1920x$height+0${script_args:+ }$script_args${NL}$command -g 1920x$height+1${script_args:+ }$script_args"
expected_args="$command -g 1920x$height+0+0${script_args:+ }$script_args${NL}$command -g 1920x$height+1+0${script_args:+ }$script_args"
if test "$expected_args" != "$received_args" ; then
echo "args:${NL}<$received_args>"
echo "expected:${NL}<$expected_args>"
Expand Down

0 comments on commit 2428f78

Please sign in to comment.