mirror of
https://github.com/elkowar/eww.git
synced 2024-10-05 15:40:12 +03:00
ElKowars wacky widgets
desktopewwgtkgtk-rsgtk3hacktoberfestlinuxrustrust-langstarred-elkowar-repostarred-repounixpornwidget
.github/workflows | ||
docs | ||
src | ||
.editorconfig | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md | ||
rust-toolchain | ||
rustfmt.toml | ||
two.png |
Table of Contents
About
Elkowar’s Wacky Widgets is a standalone Widget System made in rust to add AwesomeWM like widgets to any WM
Configuration
Eww’s configuration should be placed in ~/.config/eww/eww.xml
and any scss
styles you want to add should be put into ~/.config/eww/eww.scss
.
Example Config
<eww>
<definitions>
<def name="test">
<box orientation="v">
{{foo}}
<button onclick='notify-send "that hurt,..."'>
click me if you dare :<
</button>
<box>
{{ree}}
<slider min="0" max="100" value="50" onchange="notify-send {}"/>
</box>
</box>
</def>
</definitions>
<variables>
<var name="foo">test</var>
</variables>
<windows>
<window name="main_window">
<size x="100" y="200" />
<pos x="100" y="200" />
<widget>
<test ree="test" />
</widget>
</window>
</windows>
</eww>
Building
Prerequisites
- rustc
- cargo (nightly toolchain)
Rather than with your system package manager, I recommend installing it using rustup, as this makes it easy to use the nightly toolchain, which is necessary to build eww.
Installation
Build the Binary using -:
$ git clone https://github.com/Elkowar/eww.git
$ cd eww
$ cargo build --release
then copy the built binary from ./target/release
to anywhere in $PATH
(example - ~/.local/bin
)
Usage
Create a Config and then just do eww
!