summaryrefslogtreecommitdiff
path: root/utils.lua
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2018-06-22 12:35:51 +0200
committerAnton Khirnov <anton@khirnov.net>2018-06-22 12:35:51 +0200
commitf90e2ea391b1f39e30f5c07a0305151406586487 (patch)
tree7c19c66cc51a34266506bf71d02b764e42bcb815 /utils.lua
parenta893a33ea312167899c12002ace612475e2ecdf6 (diff)
Make sure windows are spawned on the current tag.
Diffstat (limited to 'utils.lua')
-rw-r--r--utils.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils.lua b/utils.lua
index a29a50f..bd3516d 100644
--- a/utils.lua
+++ b/utils.lua
@@ -35,4 +35,8 @@ function M.vol_control(n)
awful.util.spawn(cmd)
end
+function M.spawn_current(command)
+ awful.spawn(command, {tag = mouse.screen.selected_tag})
+end
+
return M