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:
parent
25737d90eb
commit
2428f78ea4
|
@ -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))
|
||||
|
||||
|
|
|
@ -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>"
|
||||
|
|
Loading…
Reference in New Issue