Skip to content

Commit

Permalink
Merge pull request #213 from budlabs/next
Browse files Browse the repository at this point in the history
bugfix , trim quotes in i3get output
  • Loading branch information
budRich authored Apr 21, 2024
2 parents 4d4aec8 + dd326f8 commit 3372886
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ commands to assist and extend the use of i3wm.

### installation

If you are using **Arch linux**, you can install
the i3ass package from [AUR].
~~If you are using **Arch linux**, you can install
the i3ass package from [AUR].~~ (AUR is no longer supported, but as of writing this it still "works")

Or follow the instructions below to install from source:

Expand Down
4 changes: 2 additions & 2 deletions docs/readme_install.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

### installation

If you are using **Arch linux**, you can install
the i3ass package from [AUR].
~~If you are using **Arch linux**, you can install
the i3ass package from [AUR].~~ (AUR is no longer supported, but as of writing this it still "works")

Or follow the instructions below to install from source:

Expand Down
3 changes: 3 additions & 0 deletions docs/releasenotes/0next.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ Big thanks to @henryzxb for reporting

Allthough small, this change affects all i3ass commands,
except i3king. Hopefully we didn't break something.

^ above fix introduced an issue with i3get without criterion
(targeting the active window), but it is now fixed
3 changes: 3 additions & 0 deletions docs/releasenotes/2024.04.21.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ Big thanks to @henryzxb for reporting

Allthough small, this change affects all i3ass commands,
except i3king. Hopefully we didn't break something.

^ above fix introduced an issue with i3get without criterion
(targeting the active window), but it is now fixed
8 changes: 4 additions & 4 deletions src/i3get/awklib/END.awk
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ END {

case "c":
k = "class"
v = ac[target_container_id]["class"]
v = gensub(/^"|"$/,"","g",ac[target_container_id]["class"])
out = gensub(/%v/,v,"g",format)
out = gensub(/%k/,k,"g",out)
printf ("%s", out)
break

case "i":
k = "instance"
v = ac[target_container_id]["instance"]
v = gensub(/^"|"$/,"","g",ac[target_container_id]["instance"])
out = gensub(/%v/,v,"g",format)
out = gensub(/%k/,k,"g",out)
printf ("%s", out)
Expand Down Expand Up @@ -151,7 +151,7 @@ END {

case "y":
k = "type"
v = ac[target_container_id]["window_type"]
v = gensub(/^"|"$/,"","g",ac[target_container_id]["window_type"])
out = gensub(/%v/,v,"g",format)
out = gensub(/%k/,k,"g",out)
printf ("%s", out)
Expand All @@ -161,7 +161,7 @@ END {
k = "role"

if ("window_role" in ac[target_container_id])
v = ac[target_container_id]["window_role"]
v = gensub(/^"|"$/,"","g",ac[target_container_id]["window_role"])
else
v = "unknown"

Expand Down
2 changes: 1 addition & 1 deletion src/i3get/config.mak
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NAME := i3get
VERSION := 0.93
VERSION := 0.94
CREATED := 2017-03-08
UPDATED := 2024-04-21
AUTHOR := budRich
Expand Down

0 comments on commit 3372886

Please sign in to comment.