2022-08-14 02:10:53 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-08-16 18:50:49 +08:00
|
|
|
DELIM=" "
|
2022-08-14 02:10:53 +08:00
|
|
|
|
|
|
|
status() {
|
|
|
|
for FILE in $(ls ~/.local/scripts)
|
|
|
|
do
|
|
|
|
echo $DELIM
|
|
|
|
sh ~/.local/scripts/$FILE
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
time=$(date +"%s")
|
|
|
|
|
|
|
|
while true
|
|
|
|
do
|
|
|
|
if [ $(($time - $(date +"%s"))) -lt 0 ]
|
|
|
|
then
|
|
|
|
[ $(($time - $(date +"%s"))) -ge 0 ] && echo $(($time - $(date +"%s")))
|
|
|
|
xprop -root -set WM_NAME "$(status | tr '\n' ' ')"
|
|
|
|
time=$(date +"%s")
|
|
|
|
fi
|
|
|
|
done
|