File tree 4 files changed +10
-14
lines changed
4 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 1
- .PHONY : wiki install-dev install all clean readme uninstall-dev check manpage
1
+ .PHONY : wiki install-dev install uninstall all clean readme uninstall-dev check manpage
2
2
3
3
default : all
4
4
@@ -18,7 +18,7 @@ README_LAYOUT = \
18
18
docs/readme_links.md \
19
19
20
20
21
- install install-dev all clean uninstall-dev check manpage :
21
+ install install-dev all clean uninstall-dev check manpage uninstall :
22
22
for dir in $( ass_dirs) ; do
23
23
$(MAKE ) -C " $$ dir" $@
24
24
done
Original file line number Diff line number Diff line change 1
1
NAME := i3run
2
- VERSION := 0.2
2
+ VERSION := 0.2.1
3
3
CREATED := 2017-04-20
4
- UPDATED := 2022-05-21
4
+ UPDATED := 2022-05-22
5
5
AUTHOR := budRich
6
6
CONTACT := https://github.com/budlabs/i3ass
7
7
USAGE := options
Original file line number Diff line number Diff line change @@ -9,16 +9,16 @@ focuswindow(){
9
9
if [[ ${i3list[SUS]} = 1 || ${i3list[TWC]} = " ${i3list[AWC]} " ]]; then
10
10
target_container=${i3list[TWC]}
11
11
elif [[ ${i3list[WTN]} = " ${i3list[WAN]} " ]]; then
12
- target_container=$( i3viswiz " ${_criteria[@]} " " ${_pass_json[@]} " )
12
+ target_container=$( i3viswiz " ${_criteria[@]} " )
13
13
elif [[ ${i3list[WTN]} = __i3_scratch ]]; then
14
- target_container=$( i3viswiz --scratchpad " ${_criteria[@]} " " ${_pass_json[@]} " )
14
+ target_container=$( i3viswiz --scratchpad " ${_criteria[@]} " )
15
15
fi
16
16
17
17
: " ${target_container:= ${i3list[TWC]} } "
18
18
19
19
[[ $target_container != " ${i3list[TWC]} " ]] && {
20
- _array=$( i3list --conid " $target_container " " ${_pass_json[@]} " )
21
- _pass_array=(" ${_o[verbose]: +--verbose} " --array " $_array " )
20
+ _array=$( i3list --conid " $target_container " )
21
+ _pass_array=(${_o[verbose]: +--verbose} --array " $_array " )
22
22
eval " $_array "
23
23
}
24
24
Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ main(){
10
10
declare -ag _criteria # options passed to i3list/i3get/i3viswiz
11
11
declare -A i3list # globals array
12
12
declare -g _msgstring # passed to i3-msg ( messy() )
13
- declare -g _json # result of i3-msg -t get_tree
14
- declare -ag _pass_json # helper var for storing --json option
15
13
declare -ag _pass_array # helper var for storing --array option
16
14
declare -ag _command # command to execute
17
15
declare -g _array # result of i3list
@@ -24,10 +22,8 @@ main(){
24
22
[[ -z ${_criteria[*]} ]] \
25
23
&& ERX " please specify a criteria"
26
24
27
- _json=$( i3-msg -t get_tree)
28
- _pass_json=(" ${_o[verbose]: +--verbose} " --json " $_json " )
29
- _array=$( i3list " ${_criteria[@]} " " ${_pass_json[@]} " )
30
- _pass_array=(" ${_o[verbose]: +--verbose} " --array " $_array " )
25
+ _array=$( i3list " ${_criteria[@]} " )
26
+ _pass_array=(${_o[verbose]: +--verbose} --array " $_array " )
31
27
eval " $_array "
32
28
33
29
# shellcheck disable=SC2206
You can’t perform that action at this time.
0 commit comments