Comments (6)
You can easily use a <box>
to achieve exactly that, no? as in, have 3 boxes that fill out their container with equal width, then have those align their contents left/center/right respectively
from eww.
Also note that the <widget>
tag allows you to put anything inside, so you can put those boxes directly in the <widget>
tag
from eww.
Oh wow, I didn't realize I could use <box>
within the <widget>
tag! So to achieve what I'm looking for, I could do something like:
<windows>
<window name="main_bottom">
<geometry x="5%" y="75%" width="90%" height="25%"/>
<widget>
<box class="main_bottom" orientation="h" space-evenly="false">
<profile/>
<player/>
<launch/>
<weather/>
<system_info/>
</box>
</widget>
</window>
</windows>
Do I need to add <main_bottom/>
after the </box>
? Could I also put this <box>
into the <def>
block, calling it "main" and then place it in the <widget>
block?
from eww.
Oh wow, I didn't realize I could use
<box>
within the<widget>
tag! So to achieve what I'm looking for, I could do something like:<windows> <window name="main_bottom"> <geometry x="5%" y="75%" width="90%" height="25%"/> <widget> <box class="main_bottom" orientation="h" space-evenly="false"> <profile/> <player/> <launch/> <weather/> <system_info/> </box> </widget> </window> </windows>
Do I need to add
<main_bottom/>
after the</box>
? Could I also put this<box>
into the<def>
block, calling it "main" and then place it in the<widget>
block?
Not sure what you mean by the adding </main_bottom>
after </box>
, but yes, you could definitely also put it into def and use it in the widget block.
from eww.
After thinking about it more, I realized that the last <main_box/>
is indeed unnecessary. I thought it may be needed to tell the window to open that particular widget. Simply doing eww open main_bottom
is sufficient.
As an aside, I just wanted to say thank you so much for creating/sharing this project. You're an absolute visionary for the r/unixporn community!
from eww.
Thanks! <3
from eww.
Related Issues (20)
- [FEATURE] allow partially exclusive HOT 1
- [BUG] Failed to initialize eww paths, Caused by Permission denied HOT 1
- [FEATURE] Add systray class when it is empty HOT 3
- [FEATURE] Resize bars when running
- [BUG] scss color property not updating when switching to desktop
- [FEATURE] request add anchor in rotate transform widget.
- [BUG] Can not use variable as defwindow arguments
- [BUG] Border transparency doesn't work properly if a background color is set
- [BUG] Slide animations don't work HOT 5
- Is it possible to recursively render an eww bar on the list of connected monitors?
- defwindow width 100% dont work when using scale factor on wayland monitors HOT 7
- [BUG] Transparent background styling is not applied for Cosmic compositor
- [FEATURE] Vertical graph and axis orientation HOT 1
- [BUG] graphs with values causes error_handling_ctx HOT 3
- Keyboard selection of event boxes.
- [BUG] Can't control selected Stack Child using `:selected`
- [BUG] Whitespace isn't rendered properly
- [BUG?] Eww filling up entire screen when :windowmode "dock" is set. HOT 5
- [FEATURE] Add max and min function to Eww expressions
- Installation issue HOT 3
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 eww.