user/eww: init
This commit is contained in:
parent
ed93b93c43
commit
5a4b56580b
12 changed files with 202 additions and 3 deletions
10
res/eww/scripts/title.sh
Executable file
10
res/eww/scripts/title.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue