Comments (4)
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.
But shouldn't this stuff be defined after
beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua")
?
from awesome-wm-widgets.
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.
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)
- How to install logout menu widget HOT 4
- todo-widget does not pop up HOT 3
- pactl: Older versions of pactl do not have get-sink-* commands HOT 2
- man i love this widgets are awesome as awesome is the awesomewm
- Pactl volume-widget only updates on one screen HOT 5
- Consider using wttr.in for weather widget HOT 2
- Weather widget does not work, but there are 0 errors
- volume-widget: Mixer selection
- pactl-widget: No way to set limit on max volume HOT 2
- brightness_widget: incorrect brightnessctl command for getting current brightness level HOT 1
- Change color font on the spotify-widget Widget HOT 3
- cpu widget gets placed off screen sometimes HOT 1
- Install dir not found
- README.md installation info is missing HOT 2
- Are there any plans to support hibernate in logout popup? HOT 1
- scripts
- Batteryarc shows battery warning when battery is fully charged
- [Calendar] `focus_date_bg` and `focus_date_fg` broken after updating to last commits HOT 4
- apt widget not working because icon does not show in bar HOT 3
- calendar-widget: 'today' day is not set when opening the calendar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awesome-wm-widgets.