Using foot server when possible.

This commit is contained in:
Bartek Stalewski 2023-02-23 13:09:11 +01:00
parent 122f54d3ae
commit 2fed7949fd

View File

@ -31,7 +31,7 @@ groups = [
Group("0", label="\uf2bb", matches=[Match(wm_class=["workfx"])]),
ScratchPad("scratchpad", [
DropDown(
"spterm", "foot",
"spterm", "footclient",
on_focus_lost_hide=False,
width=0.40,
height=0.50,
@ -67,12 +67,12 @@ keys = [
Key([mod, "shift"], "k", lazy.layout.grow_up()),
Key([mod, "shift", "control"], "0", lazy.layout.normalize()),
# app binds
Key([mod], "Return", lazy.spawn("foot")),
Key([mod], "Return", lazy.spawn("footclient")),
Key([mod], "space", lazy.spawncmd()),
Key([mod], "a", lazy.spawn("authenticator")),
Key([mod], "e", lazy.group["scratchpad"].dropdown_toggle('spterm')),
Key([mod], "i", lazy.spawn("sh -c 'grim -g \"$(slurp)\"'")),
Key([mod], "m", lazy.spawn("sh -c 'pgrep -x neomutt > /dev/null || foot -a mutt -o bold-text-in-bright=yes neomutt'")),
Key([mod], "m", lazy.spawn("sh -c 'pgrep -x neomutt > /dev/null || footclient -a mutt -o bold-text-in-bright=yes neomutt'")),
Key([mod, "shift"], "e", lazy.group["scratchpad"].dropdown_toggle('spwork')),
Key([mod, "shift"], "i", lazy.spawn("grim")),
Key([mod, "shift"], "Return", lazy.spawn("sh -c 'terminal_profile=work foot -o url.launch=workfx\ \${url}'")),