Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different output on different machines #369

Closed
jaimelive opened this issue Mar 8, 2019 · 2 comments
Closed

Different output on different machines #369

jaimelive opened this issue Mar 8, 2019 · 2 comments

Comments

@jaimelive
Copy link

I get different outputs for the same conf file on machines with identical installs of arch and i3-gaps.
The newer install seems to merge all the label and command info into full_text.
One example is a pango label getting truncated, while the old machine produces
"full_text": "<span font='FontAwesome'> </span>57%",, the new one seems to truncate the label,
"full_text": "<span font='FontAwesome'> </ 42%",.

I've tried looking at possible version differences and compared the hashes of the binaries and libraries but I cannot make any sense of this.

Old Machine:

[
  [],
  [
    {
      "full_text": ""
    }
  ],
  [
    {
      "full_text": ""
    },
    {
      "": "",
      "command": "date '+%Y-%m-%d %H:%M '",
      "full_text": "2019-03-08 05:14 ",
      "interval": 5,
      "markup": "none",
      "name": "time",
      "separator": true,
      "separator_block_width": 15
    }
  ],
  [
    {
      "full_text": ""
    },
    {
      "": "",
      "command": "/home/jaime/i3-stuff/i3blocks-contrib/$BLOCK_NAME/$BLOCK_NAME",
      "full_text": "<span font='FontAwesome'> </span>57%",
      "instance": "Master",
      "interval": "once",
      "label": "<span font='FontAwesome'> </span>",
      "markup": "pango",
      "name": "volume",
      "separator_block_width": 15,
      "signal": 10
    },
    {
      "": "",
      "command": "date '+%Y-%m-%d %H:%M '",
      "full_text": "2019-03-08 05:14 ",
      "interval": 5,
      "markup": "none",
      "name": "time",
      "separator": true,
      "separator_block_width": 15
    }
  ],
  [
    {
      "full_text": ""
    },
    {
      "": "",
      "command": "/home/jaime/i3-stuff/i3blocks-contrib/$BLOCK_NAME/$BLOCK_NAME",
      "full_text": "<span font='FontAwesome'> </span>57%",
      "instance": "Master",
      "interval": "once",
      "label": "<span font='FontAwesome'> </span>",
      "markup": "pango",
      "name": "volume",
      "separator_block_width": 15,
      "signal": 10
    },
    {
      "": "",
      "command": "/home/jaime/i3-stuff/i3blocks-contrib/$BLOCK_NAME/$BLOCK_NAME",
      "full_text": "",
      "interval": 1,
      "markup": "none",
      "name": "monitor_manager",
      "separator_block_width": 15
    },
    {
      "": "",
      "command": "date '+%Y-%m-%d %H:%M '",
      "full_text": "2019-03-08 05:14 ",
      "interval": 5,
      "markup": "none",
      "name": "time",
      "separator": true,
      "separator_block_width": 15
    }
  ]
]

New Machine:

[
  [],
  [
    {
      "full_text": ""
    }
  ],
  [
    {
      "full_text": ""
    },
    {
      "": "",
      "full_text": "2019-03-08 05:14 ",
      "markup": "none",
      "name": "time",
      "separator": true,
      "separator_block_width": 15
    }
  ],
  [
    {
      "full_text": ""
    },
    {
      "": "",
      "full_text": "",
      "markup": "none",
      "name": "monitor_manager",
      "separator_block_width": 15
    },
    {
      "": "",
      "full_text": "2019-03-08 05:14 ",
      "markup": "none",
      "name": "time",
      "separator": true,
      "separator_block_width": 15
    }
  ],
  [
    {
      "full_text": ""
    },
    {
      "": "",
      "full_text": "<span font='FontAwesome'> </ 42%",
      "instance": "Master",
      "markup": "pango",
      "name": "volume",
      "separator_block_width": 15
    },
    {
      "": "",
      "full_text": "",
      "markup": "none",
      "name": "monitor_manager",
      "separator_block_width": 15
    },
    {
      "": "",
      "full_text": "2019-03-08 05:14 ",
      "markup": "none",
      "name": "time",
      "separator": true,
      "separator_block_width": 15
    }
  ]
]

Config file for both:

command=/home/jaime/i3-stuff/i3blocks-contrib/$BLOCK_NAME/$BLOCK_NAME
separator_block_width=15
markup=none

[volume]
markup=pango
label=<span font='FontAwesome'> </span>
instance=Master
interval=once
signal=10

[monitor_manager]
interval=1

[time]
command=date '+%Y-%m-%d %H:%M '
interval=5
separator=true
@Ingvix
Copy link

Ingvix commented Mar 27, 2019

#259
Are you sure you got latest version of i3blocks on both machines? Build from this repo? I noticed the label limit in package provided by official Debian repo and found out the limit was removed later from the issue above and build from the source and everything's working now.

@vivien
Copy link
Owner

vivien commented Apr 9, 2019

@Ingvix pointed out the related issue. Feel free to reopen if your issue isn't solved.

@vivien vivien closed this as completed Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants