Add function to jump to screen holding tag

As opposed to viewonly, which pulls a tag to the current screen
This commit is contained in:
Spider Forrest 2023-01-01 22:52:00 -08:00 committed by GitHub
parent 2a4396ea77
commit 382bd09442
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -170,6 +170,11 @@ function sharedtags.viewonly(tag, screen)
tag:view_only()
end
function sharedtags.jumpto(tag)
awful.screen.focus(tag.screen)
tag:view_only()
end
--- Toggle the specified tag on the specified screen.
-- The tag will be selected if the screen changes, and toggled if it does not
-- change the screen.