Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
budRich committed Sep 6, 2018
1 parent 0e56122 commit 11d10ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions i3flip/i3flip
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ __contact='[email protected]'
__created="2018-01-03"
__updated="2018-09-01"


main(){

eval set -- "$(getopt --name "$__name" \
Expand Down Expand Up @@ -62,6 +63,7 @@ main(){
i3-msg -q "[con_id=$__orgtrg]" focus, focus child
}


gettarget(){
local trg

Expand All @@ -79,6 +81,7 @@ gettarget(){
echo "${aord[$((trg-1))]}"
}


getcurrent(){
i3-msg -t get_tree \
| awk -v RS=',' -F':' -v crit='"focused"' -v srch="true" '
Expand Down Expand Up @@ -120,7 +123,6 @@ getcurrent(){
}



printinfo(){
local about bouthead boutfoot

Expand Down Expand Up @@ -188,8 +190,6 @@ SEE ALSO
i3(1)
"



case "$1" in
# print version info to stdout
version )
Expand Down
2 changes: 1 addition & 1 deletion i3get/i3get
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ getwindow(){
}
$1 ~ crit && $2 ~ srch {hit=1;fid=cid}
$2 ~ crit && $3 ~ srch {hit=1;fid=cid}
sret ~ t && $1=="\"title\"" {r["t"]=$2}
sret ~ t && $1=="\"title\"" {sub($1":","");r["t"]=$0}
sret ~ c && $2 ~ "\"class\"" {r["c"]=$3}
sret ~ i && $1=="\"instance\"" {r["i"]=$2}
sret ~ d && $1=="\"window\"" {r["d"]=$2}
Expand Down

0 comments on commit 11d10ff

Please sign in to comment.