From 44bc3e2e0690ec0091a24c32662cd2088fae5187 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Tue, 23 Feb 2021 13:31:10 +0100 Subject: bin/swx: default to foot on -t --- bin/swx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'bin') 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 -- cgit 1.4.1