[i3get] title is not being printed if it contains ":" #174
Labels
No labels
Arch PKGBUILD
bug
build
commandline
duplicate
enhancement
font
good first issue
help wanted
implemented
is-it-really-a-bug?
necromancy
not-reproducable
question
reproducable
rofi
solved?
stalled
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
bud/i3ass#174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I recently watched your video on custom title module for polybar and when I run
i3get -r t, it didn't work on the browser tab with your video, but worked on anything else.I tried to investigate by testing
i3getwith bunch of random symbols but it seems that it only doesn't work with:.thanks for the report i will look into it. just to be sure what is your output of:
i3get -vi managed to reproduce the issue and i think i have found a fix.
in the JSON the title is fetched from the name property and the raw json looks something like this:
I parse with AWK simply by splitting records on "," and fields on ":" and i always assume(d) the name of the property is the second to last field.. Usually that is the first field. But sometimes like with "geometry", the second to last field is "x".
But if the title has a colon, "name" will not be the second to last key, and it was ignored. I fixed it now and applied the same fix to "title_format" (
i3get -r o) which have the same issues.Sorry for the late response but I just woke up...
Here's an
i3-get -voutput (sorry for not including):I'm using the aur version of i3ass.
Glad to hear that :)