From 8fb30f01b643bd69c5d7ece85c3025115b336988 Mon Sep 17 00:00:00 2001 From: Soispha Peetz Date: Mon, 23 Nov 2026 17:04:19 +0100 Subject: treewide: Switch from alacritty to foot I think all the issues with foot have been ironed out by now, and a switch like that should be nearly without (visible) changes. --- modules/by-name/qu/qutebrowser/settings/default.nix | 4 ++-- modules/by-name/xd/xdg/module.nix | 2 +- modules/by-name/xd/xdg/scripts/lf-wrapper.sh | 2 +- modules/by-name/yt/yt/external_commands_script.sh | 2 +- modules/by-name/yt/yt/module.nix | 2 +- modules/common/soispha/default.nix | 2 +- pkgs/by-name/sc/screenshot_persistent/package.unstable.nix | 6 +++--- pkgs/by-name/sc/screenshot_persistent/screenshot_persistent.sh | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/by-name/qu/qutebrowser/settings/default.nix b/modules/by-name/qu/qutebrowser/settings/default.nix index b0259c22..022f97bd 100644 --- a/modules/by-name/qu/qutebrowser/settings/default.nix +++ b/modules/by-name/qu/qutebrowser/settings/default.nix @@ -284,10 +284,10 @@ in { editor = { command = [ - "${lib.getExe pkgs.alacritty}" + "${lib.getExe' pkgs.foot "footclient"}" "--title" "floating please" - "--command" + "--" "nvim" "-c" "normal {line}G{column0}|" diff --git a/modules/by-name/xd/xdg/module.nix b/modules/by-name/xd/xdg/module.nix index 92bb3059..7cd31680 100644 --- a/modules/by-name/xd/xdg/module.nix +++ b/modules/by-name/xd/xdg/module.nix @@ -16,7 +16,7 @@ lf-wrapper = pkgs.writeShellApplication { name = "lf-wrapper"; - runtimeInputs = [pkgs.lf pkgs.alacritty]; + runtimeInputs = [pkgs.lf pkgs.foot]; inheritPath = true; text = builtins.readFile ./scripts/lf-wrapper.sh; diff --git a/modules/by-name/xd/xdg/scripts/lf-wrapper.sh b/modules/by-name/xd/xdg/scripts/lf-wrapper.sh index 6a5c5295..d0216fb5 100755 --- a/modules/by-name/xd/xdg/scripts/lf-wrapper.sh +++ b/modules/by-name/xd/xdg/scripts/lf-wrapper.sh @@ -42,7 +42,7 @@ else set -- -selection-path="$out" -command='set promptfmt "Select file (open file to select it) %S \033[32;1m%u@%h\033[0m:\033[34;1m%d\033[0m\033[1m%f\033[0m"' "$path" fi -alacritty --title 'floating please' -e lf "$@" +footclient --title 'floating please' -- lf "$@" # Delete the left recommended file, if we did not actually save anything. if [ "$save" = "1" ] && ! [ -s "$out" ]; then diff --git a/modules/by-name/yt/yt/external_commands_script.sh b/modules/by-name/yt/yt/external_commands_script.sh index 2e59e94a..f16a1977 100755 --- a/modules/by-name/yt/yt/external_commands_script.sh +++ b/modules/by-name/yt/yt/external_commands_script.sh @@ -2,7 +2,7 @@ riverctl focus-output next -alacritty --title "floating please" --command "$@" +footclient --title "floating please" -- "$@" riverctl focus-output next diff --git a/modules/by-name/yt/yt/module.nix b/modules/by-name/yt/yt/module.nix index 02fd7df2..4d951af1 100644 --- a/modules/by-name/yt/yt/module.nix +++ b/modules/by-name/yt/yt/module.nix @@ -69,7 +69,7 @@ text = builtins.readFile ./external_commands_script.sh; runtimeInputs = [ pkgs.river-classic - pkgs.alacritty + pkgs.foot pkgs.less ]; diff --git a/modules/common/soispha/default.nix b/modules/common/soispha/default.nix index 31eb951f..fe38e1f8 100644 --- a/modules/common/soispha/default.nix +++ b/modules/common/soispha/default.nix @@ -132,7 +132,7 @@ foot.enable = true; ausweisapp.enable = true; signal.enable = true; - alacritty.enable = true; + alacritty.enable = false; cargo.enable = true; calibre.enable = true; iamb.enable = true; diff --git a/pkgs/by-name/sc/screenshot_persistent/package.unstable.nix b/pkgs/by-name/sc/screenshot_persistent/package.unstable.nix index 34054b0f..2413b8c4 100644 --- a/pkgs/by-name/sc/screenshot_persistent/package.unstable.nix +++ b/pkgs/by-name/sc/screenshot_persistent/package.unstable.nix @@ -11,7 +11,7 @@ writeShellApplication, grim, slurp, - alacritty, + foot, rofi, libnotify, lf, # TODO: add llp @@ -22,10 +22,10 @@ writeShellApplication { runtimeInputs = [ grim slurp - alacritty + foot rofi libnotify - lf # TODO: add llp + lf ]; meta = { mainProgram = "screenshot_persistent"; diff --git a/pkgs/by-name/sc/screenshot_persistent/screenshot_persistent.sh b/pkgs/by-name/sc/screenshot_persistent/screenshot_persistent.sh index f67293cd..7b1affbf 100755 --- a/pkgs/by-name/sc/screenshot_persistent/screenshot_persistent.sh +++ b/pkgs/by-name/sc/screenshot_persistent/screenshot_persistent.sh @@ -22,7 +22,7 @@ if grim -g "$(slurp)" "$tmp"; then done mv "$tmp" "$screen_shot_path" - alacritty --title "floating please" --command lf -command ":{{ set sortby atime; set reverse!; set info time; }}" "$screen_shot_path" + footclient --title "floating please" -- lf -command ":{{ set sortby atime; set reverse!; set info time; }}" "$screen_shot_path" fi # vim: ft=sh -- cgit v1.3.1