diff --git a/sway/popup-term.pl b/sway/popup-term.pl index ce97522..d29a3fb 100755 --- a/sway/popup-term.pl +++ b/sway/popup-term.pl @@ -6,7 +6,9 @@ use warnings; # Workspace to push the terminal to when dismissed my $hidden = 'grave'; # Terminal application used for pop-up (swaymsg 'name') -my $term = 'uxterm'; +my $term = 'alacritty'; +# App ID +my $class = 'Alacritty-grave'; use JSON::XS; my $json = JSON::XS->new(); @@ -59,14 +61,11 @@ foreach my $d (@{$root->{nodes}}) { } } } -print "Active workspace = $workspace\n" - . "Terminal ID = $term_id\n" - . "Terminal WS = $term_ws\n"; # If there is no terminal found, spawn one if (!defined($term_id)) { print "No term running, starting one\n"; - exec $term + `$term --config-file $ENV{HOME}/.dotfiles/alacritty/grave.yml --class $class`; # If the current workspace is known and terminal isn't on it, bring and focus } elsif ($workspace != $term_ws) { print "Term not on current workspace, bringing it\n";