This commit is contained in:
Linux User 2022-08-17 14:38:29 +00:00
parent 85d64f0ac7
commit 219ddac852
1 changed files with 15 additions and 5 deletions

View File

@ -1,12 +1,22 @@
#!/bin/bash #!/bin/bash
DELIM=" " DELIM=" "
DELIM_START=0
status() { status() {
strt=0
[ $DELIM_START -eq 1 ] && strt=1
for FILE in $(ls ~/.local/scripts) for FILE in $(ls ~/.local/scripts)
do do
echo $DELIM res=$(sh ~/.local/scripts/$FILE)
sh ~/.local/scripts/$FILE if [ $strt -eq 0 ]
then
strt=1
echo "$res"
else
echo "$DELIM$res"
fi
done done
} }
@ -16,8 +26,8 @@ while true
do do
if [ $(($time - $(date +"%s"))) -lt 0 ] if [ $(($time - $(date +"%s"))) -lt 0 ]
then then
[ $(($time - $(date +"%s"))) -ge 0 ] && echo $(($time - $(date +"%s"))) stat=$(status | tr -d '\n')
xprop -root -set WM_NAME "$(status | tr '\n' ' ')" xprop -root -set WM_NAME "$stat"
time=$(date +"%s") time=$(date +"%s")
fi fi
done done