dots-of-war/files/.config/eww/eww.xml

178 lines
5.3 KiB
XML
Raw Normal View History

2020-10-21 20:01:39 +00:00
<eww>
2021-03-16 15:14:21 +00:00
<includes>
<file path="./foo.xml"/>
</includes>
2020-10-21 20:01:39 +00:00
<definitions>
2021-03-16 15:14:21 +00:00
<def name="pxbar">
<progress value="{{volume}}" orientation="v" halign="start" flipped="true"/>
</def>
2020-10-21 20:01:39 +00:00
2021-01-31 10:55:50 +00:00
<def name="test">
2020-12-25 10:53:37 +00:00
<box class="{{some_var}}" space-evenly="false" spacing="10">
2020-10-21 20:01:39 +00:00
testing {{shit}}
2021-03-16 15:14:21 +00:00
is shit true? {{shit == true}}
is shit "shit"? {{shit == "shit"}}
true and false 🤔 {{ true && false }}
fancy ass math {{ 12 + 5 * 12 * 4 }}
<if-else cond="{{shit == 'yea'}}">
<box>hi</box>
<box>ho</box>
</if-else>
2020-11-07 13:05:49 +00:00
<scale value="50" orientation="v" min="0" max="100" flipped="true" />
2020-10-21 20:01:39 +00:00
<button onclick="pgrep 'eww' &amp;&amp; echo '' || echo ''">Test bug</button>
2020-10-21 20:01:39 +00:00
<button onclick="notify-send 'ree' 'this is {{shit}}'">click me</button>
<calendar show-heading="false" show-day-names="false" day="2" onclick="notify-send 'asdf' '{}'" />
notify-send 'ree' 'this is {{shit}}'
<multiple text="{{shit}}" />
2021-01-31 10:55:50 +00:00
2021-03-16 15:14:21 +00:00
<!--<literal content="{{code}}"/>-->
2020-10-21 20:01:39 +00:00
</box>
</def>
<def name="multiple">
<box orientation="v" space-evenly="false">
2021-01-31 10:55:50 +00:00
<box>{{text}}test</box>
<box class="whatever lol">{{text}}</box>
<box style="color: blue;">{{text}}</box>
2020-10-21 20:01:39 +00:00
<box>{{text}}</box>
<box>{{text}}</box>
2020-11-01 12:51:00 +00:00
2021-01-31 10:55:50 +00:00
<label onscroll="notify-send '{{shit}}' {}" text="reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" limit-width="5" wrap="true" />
2021-03-16 15:14:21 +00:00
<!--<input onchange="eww update code='{}'" />-->
2020-11-07 13:05:49 +00:00
{{date}}
2021-03-16 15:14:21 +00:00
{{date-tail}}
2020-10-21 20:01:39 +00:00
</box>
</def>
<def name="volume_popup">
<box orientation="v" space-evenly="true">
<scale flipped="true" orientation="v" value="{{volume}}" min="0" max="100" onchange="amixer sset 'Master' {}%" />
</box>
</def>
<def name="music">
2020-12-25 10:53:37 +00:00
<box class="hi ho" orientation="h" valign="start" space-evenly="false" hexpand="true">
2020-11-01 12:51:00 +00:00
<image visible="{{song-image-visible}}" path="{{song-image}}" width="150" height="150" />
2020-10-21 20:01:39 +00:00
<box orientation="v" halign="fill" space-evenly="false" vexpand="true" hexpand="true">
<box class="data" vexpand="true">
<box orientation="v" halign="start">
<label class="songname" halign="start" limit-width="30" text="{{song-name}}" />
<box space-evenly="false" halign="start">
2020-11-01 12:51:00 +00:00
<label class="key" text="Album: " />
2020-10-21 20:01:39 +00:00
<label halign="start" limit-width="30" text="{{song-album}}" />
</box>
<box space-evenly="false" halign="start">
2020-11-01 12:51:00 +00:00
<label class="key" text="By: " />
2020-10-21 20:01:39 +00:00
<label halign="start" limit-width="30" text="{{song-artist}}" />
</box>
</box>
</box>
<box class="buttons" hexpand="true">
<button onclick="playerctl previous"></button>
<button onclick="playerctl play-pause">{{song-playpause}}</button>
<button onclick="playerctl next"></button>
</box>
</box>
</box>
</def>
</definitions>
<variables>
2020-11-07 13:05:49 +00:00
<script-var name="volume">
amixer sget 'Master' | grep 'Front Left:' | sed 's/.*\[\(.*\)%\].*/\1/g';
2021-03-16 15:14:21 +00:00
LANG=C pactl subscribe | grep --line-buffered sink | while read -r _; do
amixer sget 'Master' | grep 'Front Left:' | sed 's/.*\[\(.*\)%\].*/\1/g'
2020-11-07 13:05:49 +00:00
done
</script-var>
2020-10-21 20:01:39 +00:00
<var name="shit">
2021-03-16 15:14:21 +00:00
true
2020-10-21 20:01:39 +00:00
</var>
2020-12-25 10:53:37 +00:00
<var name="some_var"></var>
2021-03-16 15:14:21 +00:00
<var name="code"></var>
2020-10-21 20:01:39 +00:00
2021-01-31 10:55:50 +00:00
2020-10-21 20:01:39 +00:00
<var name="song-image"></var>
2020-11-01 12:51:00 +00:00
<var name="song-image-visible">true</var>
2020-10-21 20:01:39 +00:00
<var name="song-name"></var>
<var name="song-album"></var>
<var name="song-artist"></var>
<var name="song-show-progress">false</var>
<var name="song-playpause"></var>
2020-11-08 18:36:33 +00:00
<!--<script-var name="date" interval="1s">-->
<!--date-->
<!--</script-var>-->
2021-03-16 15:14:21 +00:00
<script-var name="date-tail">
2020-11-08 18:36:33 +00:00
while true; do
sleep 1;
notify-send 'hi' 'ho'
2020-11-01 12:51:00 +00:00
date
2020-11-08 18:36:33 +00:00
done
2020-11-01 12:51:00 +00:00
</script-var>
2021-01-31 10:55:50 +00:00
2021-03-16 15:14:21 +00:00
<script-var name="date" interval="1s">
date
</script-var>
2020-11-01 12:51:00 +00:00
<!--<script-var name="xyz">-->
2020-11-07 13:05:49 +00:00
<!--tail -F /home/leon/test | while read -r _; do notify-send "Hi"; done-->
2020-11-01 12:51:00 +00:00
<!--</script-var>-->
<!--<script-var name="foo">-->
2020-11-07 13:05:49 +00:00
<!--tail -F /home/leon/test-->
2020-10-21 20:01:39 +00:00
<!--</script-var>-->
</variables>
<windows>
2021-03-16 15:14:21 +00:00
<window screen="0" name="px" stacking="fg" focusable="false">
<geometry anchor="center left" width="10px" height="100%" x="1px" y="0px"/>
<widget>
<pxbar/>
</widget>
</window>
<window screen="1" name="mw" stacking="fg" focusable="false">
<!--<window screen="2" name="mw" stacking="fg" focusable="false">-->
<reserve side="l" distance="500px"/>
2021-01-31 10:55:50 +00:00
<geometry anchor="center" width="200px" height="200px" x="0px" y="0px"/>
2020-10-21 20:01:39 +00:00
<widget>
<test ree="test" />
</widget>
</window>
2021-01-31 10:55:50 +00:00
<window screen="0" name="mw2" stacking="fg">
2020-11-08 18:36:33 +00:00
<geometry anchor="bottom right"/>
<widget>
2021-03-16 15:14:21 +00:00
<foo/>
<!--<test ree="test" />-->
2020-11-08 18:36:33 +00:00
</widget>
</window>
2020-10-21 20:01:39 +00:00
<window screen="0" name="volume_popup">
2020-11-07 13:05:49 +00:00
<geometry />
2020-10-21 20:01:39 +00:00
<widget>
<volume_popup />
</widget>
</window>
<window screen="0" name="music">
<widget>
<music />
</widget>
</window>
</windows>
</eww>