Giter Site home page Giter Site logo

Comments (4)

streetturtle avatar streetturtle commented on May 19, 2024

Hi!
In this widget I used Awesome's theme capabilities. The idea is basically to put some variables inside your theme file (which by default should be /.config/awesome/themes/default/theme.lua).
So to make it work you can either

  • add theme.widget_red=#ff0000 (or the color you like) in your theme.lua, or
  • change it directly in the widget's code:
if mute == "off" then
    widget.colors = "#ff0000"
else
    widget.colors = "#00ff00"
end

from awesome-wm-widgets.

floli avatar floli commented on May 19, 2024

But shouldn't this stuff be defined after

beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua")

?

from awesome-wm-widgets.

streetturtle avatar streetturtle commented on May 19, 2024

Mm... not sure if I understood your question.
The variables used in widget (widget_red or widget_main_color) are custom - they don't exist in fresh Awesome installation. So if you add those variables in your theme.lua then they will be initialized by the line you pasted.

from awesome-wm-widgets.

floli avatar floli commented on May 19, 2024

Ah, I see. I thought that beautiful.widget_red is supposed to be defined by default/theme.lua or one of the other themes, so there is a default /red/, defined by the theme, i.e. a color that draws attention and has a high contrast to the background color.

from awesome-wm-widgets.

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.