Sticky the pop-up terminal while present

This commit is contained in:
John Mertz 2022-04-19 00:16:30 -04:00 committed by John Mertz
parent d06ed5266f
commit b3e2e00961
Signed by: jpm
GPG Key ID: E9C5EA2D867501AB
1 changed files with 2 additions and 0 deletions

View File

@ -72,8 +72,10 @@ if (!defined($term_id)) {
print "Term not on current workspace, bringing it\n"; print "Term not on current workspace, bringing it\n";
`swaymsg "[con_id=$term_id]" move workspace $workspace`; `swaymsg "[con_id=$term_id]" move workspace $workspace`;
`swaymsg "[con_id=$term_id]" focus`; `swaymsg "[con_id=$term_id]" focus`;
`swaymsg "[con_id=$term_id]" sticky enable`;
# Otherwise hide it from whereever it is # Otherwise hide it from whereever it is
} else { } else {
print "Term is on current workspace or lost, moving to $hidden\n"; 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`; `swaymsg "[con_id=$term_id]" move workspace $hidden`;
} }