From 8de235f88924ea7b6dd5f3fd6404508ce320b5eb Mon Sep 17 00:00:00 2001 From: Jakob Lechner Date: Thu, 23 May 2024 10:49:48 +0200 Subject: [PATCH] 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. --- home-manager/modules/alacritty.nix | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/home-manager/modules/alacritty.nix b/home-manager/modules/alacritty.nix index 2fb22be..3c82e32 100644 --- a/home-manager/modules/alacritty.nix +++ b/home-manager/modules/alacritty.nix @@ -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 = {