Added foot

This commit is contained in:
Joachim Nielandt 2023-05-18 08:03:51 +02:00
parent 4700eeae1a
commit 1e29d375de
2 changed files with 15 additions and 1 deletions

View File

@ -8,8 +8,12 @@ set $left h
set $down j set $down j
set $up k set $up k
set $right l set $right l
# Your preferred terminal emulator # 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 # Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened # 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. # on the original workspace that the command was run on.

View File

@ -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"}" "$@" &