Giter Club home page Giter Club logo

Comments (11)

actionless avatar actionless commented on August 28, 2024

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/

from awesome_config.

batmanm0b1E avatar batmanm0b1E commented on August 28, 2024

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)
))
-- }}}

from awesome_config.

actionless avatar actionless commented on August 28, 2024

yup, because instead of updating your code in_screen_connect function you just inserted the code after, so you have two panels

from awesome_config.

batmanm0b1E avatar batmanm0b1E commented on August 28, 2024

so how do i fix

from awesome_config.

actionless avatar actionless commented on August 28, 2024

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

from awesome_config.

batmanm0b1E avatar batmanm0b1E commented on August 28, 2024

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.

from awesome_config.

batmanm0b1E avatar batmanm0b1E commented on August 28, 2024

Ok i think i almost got it. If you can help please. at top its just saying waiting for spotify not doing anything

from awesome_config.

actionless avatar actionless commented on August 28, 2024

do you have spotify running?

if so, do you have anything in awesome's stderr?

from awesome_config.

batmanm0b1E avatar batmanm0b1E commented on August 28, 2024

yes i have spotify running. What do you mean in awesome's stderr

from awesome_config.

actionless avatar actionless commented on August 28, 2024

stderr of awesome process

from awesome_config.

batmanm0b1E avatar batmanm0b1E commented on August 28, 2024

where's it located

from awesome_config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.