From a1827a1ab0aff25192fb1ec2bf5d29d524ea1fa8 Mon Sep 17 00:00:00 2001 From: Pavel Makhov Date: Mon, 5 Nov 2018 17:02:37 -0500 Subject: [PATCH] show shell on focused screen --- spotify-shell/spotify-shell.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spotify-shell/spotify-shell.lua b/spotify-shell/spotify-shell.lua index e981e06..0611e66 100644 --- a/spotify-shell/spotify-shell.lua +++ b/spotify-shell/spotify-shell.lua @@ -23,7 +23,6 @@ local w = wibox { border_color = '#84bd00', max_widget_size = 500, ontop = true, - screen = mouse.screen, height = 50, width = 250, shape = function(cr, width, height) @@ -55,7 +54,7 @@ w:setup { local function launch() w.visible = true - awful.placement.top(w, { margins = {top = 40}}) + awful.placement.top(w, { margins = {top = 40}, parent = awful.screen.focused()}) awful.prompt.run{ prompt = "Spotify Shell: ", bg_cursor = '#84bd00',