Remove alacritty-sway-cwd attempt

This was an attempt to start new instances of Alacritty in the same
working directory as the focused instance.
A working implementation is now part of the sway module.
This commit is contained in:
Jakob Lechner 2024-05-23 10:49:48 +02:00
parent 5ffa7b9850
commit 8de235f889

View file

@ -3,20 +3,6 @@ let
solarized = import ./solarized.nix;
tomlFormat = pkgs.formats.toml { };
#nixosConfig.jalr.terminalEmulator.command = pkgs.writeShellScriptBin "alacritty-sway-cwd" ''
# this_alacritty_pid="$(swaymsg -t get_tree | ${pkgs.jq} -e 'recurse(.nodes[]?) | select((.focused==true) and (.app_id=="Alacritty")).pid')"
# if [ "$this_alacritty_pid" ]; then
# child_pid="$(pgrep -P "$this_alacritty_pid")"
# cwd="$(readlink /proc/$child_pid/cwd)"
# fi
# if [ -e "$cwd" ]; then
# exec ${pkgs.alacritty} --working-directory "$cwd"
# fi
# exec alacritty
#'';
colorschemes = {
# https://github.com/alacritty/alacritty/wiki/Color-schemes#solarized
solarized-dark = {