Sticky the pop-up terminal while present

This commit is contained in:
John Mertz 2022-04-19 00:16:30 -04:00
parent 57fc3be9e1
commit e6986d01ad
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";
`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`;
}