user/eww: init

This commit is contained in:
LavaDesu 2022-03-22 23:50:53 +07:00
parent ed93b93c43
commit 5a4b56580b
Signed by: cilly
GPG key ID: 6500251E087653C9
12 changed files with 202 additions and 3 deletions

10
res/eww/scripts/title.sh Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env sh
xtitle -s | while read -r line ; do
trunc=$(echo $line | cut -c-85)
if [ -z "$line" ]; then
echo ""
else
echo "(box :class \"widget title\" :halign \"center\" :valign \"center\" :vexpand true :hexpand true (label :text \"${trunc}\"))"
fi
done