Closed batmanm0b1E closed 6 years ago
your panel code seems to be hidden under beautiful.at_screen_connect(s)
but anyway general way to use it is (example on default rc.lua
):
-- Add widgets to the wibox
s.mywibox:setup {
layout = wibox.layout.align.horizontal,
{ -- Left widgets
layout = wibox.layout.fixed.horizontal,
mylauncher,
s.mytaglist,
s.mypromptbox,
},
s.mytasklist, -- Middle widget
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
require("actionless.widgets.music").widget{
backends={"spotify", },
bg="#0e0021",
fg="#fe3383",
pause_bg="#888a85",
pause_fg="#123412",
},
mykeyboardlayout,
wibox.widget.systray(),
mytextclock,
s.mylayoutbox,
},
}
available backends are: { 'mpd', 'cmus', 'spotify', 'clementine', }
you can choose more than one and switch them with the right mouse button
you'll need to copy actionless
directory from my config to ~/.config/awesome/
I put it in like this. But i have red popup errors and i have a double panel now.
I don't think i did it right if you can help
-- Create a wibox for each screen and add it
awful.screen.connect_for_each_screen(function(s) beautiful.at_screen_connect(s) end)
-- }}}
-- Add widgets to the wibox
s.mywibox:setup {
layout = wibox.layout.align.horizontal,
{ -- Left widgets
layout = wibox.layout.fixed.horizontal,
mylauncher,
s.mytaglist,
s.mypromptbox,
},
s.mytasklist, -- Middle widget
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
require("actionless.widgets.music").widget{
backends={"spotify", },
bg="#0e0021",
fg="#fe3383",
pause_bg="#888a85",
pause_fg="#123412",
},
mykeyboardlayout,
wibox.widget.systray(),
mytextclock,
s.mylayoutbox,
},
}
-- {{{ Mouse bindings
root.buttons(awful.util.table.join(
awful.button({ }, 3, function () awful.util.mymainmenu:toggle() end),
awful.button({ }, 4, awful.tag.viewnext),
awful.button({ }, 5, awful.tag.viewprev)
))
-- }}}
yup, because instead of updating your code in_screen_connect
function you just inserted the code after, so you have two panels
so how do i fix
you're trying to modify the config which you don't understand -- that's the root cause
try to use default rc.lua as a base for your own config so it will be easier for you to understand the configuration process and use help articles (because in most of examples default rc.lua is used)
and not just copy paste the snippets -- try to put code line by line and really understand what it does and why it's there
so if its not too much trouble to ask? can you tell me how to put your Spotify code in my rc.lua. I get those red errors every time i try to put in what you gave me.
Ok i think i almost got it. If you can help please. at top its just saying waiting for spotify not doing anything
do you have spotify running?
if so, do you have anything in awesome's stderr?
yes i have spotify running. What do you mean in awesome's stderr
stderr of awesome process
where's it located
I would like the Spotify in my awesome if you can be grateful to help
here's my rc.lua file