diff --git a/dot_config/sway/config b/dot_config/sway/config index 2e469bf..d3ca2fa 100644 --- a/dot_config/sway/config +++ b/dot_config/sway/config @@ -8,8 +8,12 @@ set $left h set $down j set $up k set $right l + # Your preferred terminal emulator -set $term alacritty +set $term $HOME/.config/sway/scripts/foot.sh +set $term_cwd $term -D "$(swaycwd 2>/dev/null || echo $HOME)" +set $term_float footclient -a floating_shell + # Your preferred application launcher # Note: pass the final command to swaymsg so that the resulting window can be opened # on the original workspace that the command was run on. diff --git a/dot_config/sway/scripts/executable_foot.sh b/dot_config/sway/scripts/executable_foot.sh new file mode 100644 index 0000000..3b4a52b --- /dev/null +++ b/dot_config/sway/scripts/executable_foot.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env sh +# wrapper script for foot + +USER_CONFIG_PATH="${HOME}/.config/foot/foot.ini" + +if [ -f "$USER_CONFIG_PATH" ]; then + USER_CONFIG=$USER_CONFIG_PATH +fi + +foot -c "${USER_CONFIG:-"/usr/share/sway/templates/foot.ini"}" "$@" &