support vertically-aligned multi-monitor setups in lemonbar (#1982)

* support vertically-aligned multi-monitor setups in lemonbar

* Fix expected args in lemonbar test
This commit is contained in:
sol 2019-09-26 08:57:56 +02:00 committed by Philip Wellnitz
parent 25737d90eb
commit 2428f78ea4
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ if __name__ == '__main__':
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))

View File

@ -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>"