diff options
Diffstat (limited to 'bin/swx')
| -rwxr-xr-x | bin/swx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/swx b/bin/swx index 284e5c7..01003fc 100755 --- a/bin/swx +++ b/bin/swx @@ -96,10 +96,10 @@ command="${arg0} ${*}" # needs to be termified? # spawn a $TERM instance and exec that if [ -n "${termify}" ]; then - case ${TERM} in - alacritty) term_args="--title=${term_title:-${arg0}} --class=${term_title:-${arg0}} --command" ;; - foot) term_args="--title=${term_title:-${arg0}} --app-id=${term_title:-${arg0}} --" ;; - *) term_args="" ;; + case ${TERM:-foot} in + alacritty) term_args="--title=${term_title:-${arg0}} --class=${term_title:-${arg0}} --command" ;; + foot) term_args="--title=${term_title:-${arg0}} --app-id=${term_title:-${arg0}} --" ;; + *) term_args="" ;; esac command="${TERM} ${term_args} ${command}" fi @@ -124,7 +124,8 @@ fi if [ -n "${autotile}" ]; then layout=$(swq current con | jq -r '.layout') - # swq current workspace | jq -r '.. | select(.type?=="con" and .name?==null) | .layout' + # layout=$(swq current workspace | jq -r '.. | select(.type?=="con" and .name?==null) | .layout') + # notify-send swx "${layout}" case "${layout}" in split*) if [ "$(swq current con | jq '.rect | .width > .height')" = "true" ]; then |