From 4ec3df5df543b40ba28a3a9e8de4690803e7a336 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Mon, 2 May 2022 01:02:09 -0700 Subject: [PATCH] Added foot to the default terminal list --- man/wofi-api.3 | 2 +- man/wofi.1 | 2 +- man/wofi.5 | 2 +- src/wofi.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/man/wofi-api.3 b/man/wofi-api.3 index 67f274a..d9a5414 100644 --- a/man/wofi-api.3 +++ b/man/wofi-api.3 @@ -106,7 +106,7 @@ Returns true if the user was holding control when selecting an entry, false othe .TP .B void wofi_term_run(const char* cmd) -Runs the provided cmd in a terminal emulator. The following order is used for picking a terminal emulator: The user specified terminal, kitty, termite, gnome\-terminal, weston\-terminal. If none of these can be found execution will fail. +Runs the provided cmd in a terminal emulator. The following order is used for picking a terminal emulator: The user specified terminal, kitty, termite, alacritty, foot, gnome\-terminal, weston\-terminal. If none of these can be found execution will fail. .B const char* cmd \- The command to run, this is invoked by doing \fBterm \-\- cmd\fR. diff --git a/man/wofi.1 b/man/wofi.1 index 7d71309..27ae7f0 100644 --- a/man/wofi.1 +++ b/man/wofi.1 @@ -63,7 +63,7 @@ Allows pango markup to be processed and rendered. Specifies the cache file to load/store cache, default is $XDG_CACHE_HOME/wofi\- where is the name of the mode, if $XDG_CACHE_HOME is not specified ~/.cache is used. .TP .B \-t, \-\-term=\fITERM\fR -Specifies the term to use when running a program in a terminal. This overrides the default terminal run order which is kitty, termite, gnome\-terminal, weston\-terminal in that order. +Specifies the term to use when running a program in a terminal. This overrides the default terminal run order which is kitty, termite, alacritty, foot, gnome\-terminal, weston\-terminal in that order. .TP .B \-P, \-\-password \fR[character] Runs wofi in password mode with an optional password character to use. If no character is specified * is used by default. diff --git a/man/wofi.5 b/man/wofi.5 index 9fbd176..7857a3c 100644 --- a/man/wofi.5 +++ b/man/wofi.5 @@ -65,7 +65,7 @@ If true allows pango markup to be processed and rendered, default is false. Specifies the cache file to load/store cache, default is $XDG_CACHE_HOME/wofi\- where is the name of the mode, if $XDG_CACHE_HOME is not specified ~/.cache is used. .TP .B term=\fITERM\fR -Specifies the term to use when running a program in a terminal. This overrides the default terminal run order which is kitty, termite, gnome\-terminal, weston\-terminal in that order. +Specifies the term to use when running a program in a terminal. This overrides the default terminal run order which is kitty, termite, alacritty, foot, gnome\-terminal, weston\-terminal in that order. .TP .B password=\fICHARACTER\fR Runs wofi in password mode using the specified character, default is false. diff --git a/src/wofi.c b/src/wofi.c index c96cb3e..1382b41 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2020 Scoopta + * Copyright (C) 2019-2022 Scoopta * This file is part of Wofi * Wofi is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -40,7 +40,7 @@ #include #include -static const char* terminals[] = {"kitty", "termite", "alacritty", "gnome-terminal", "weston-terminal"}; +static const char* terminals[] = {"kitty", "termite", "alacritty", "foot", "gnome-terminal", "weston-terminal"}; enum matching_mode { MATCHING_MODE_CONTAINS,