diff --git a/sway/popup-term.pl b/sway/popup-term.pl index 5e70e4f..b13e8e4 100755 --- a/sway/popup-term.pl +++ b/sway/popup-term.pl @@ -72,8 +72,10 @@ if (!defined($term_id)) { print "Term not on current workspace, bringing it\n"; `swaymsg "[con_id=$term_id]" move workspace $workspace`; `swaymsg "[con_id=$term_id]" focus`; + `swaymsg "[con_id=$term_id]" sticky enable`; # Otherwise hide it from whereever it is } else { print "Term is on current workspace or lost, moving to $hidden\n"; + `swaymsg "[con_id=$term_id]" sticky disable`; `swaymsg "[con_id=$term_id]" move workspace $hidden`; }