waybar changes 1

This commit is contained in:
cnst
2024-12-27 16:46:50 +01:00
parent 542bac2fe7
commit 10716da678
22 changed files with 1007 additions and 159 deletions

View File

@@ -0,0 +1,21 @@
#!/bin/sh
output() {
if [ -f "$HOME/decrypted/.lock" ]; then
printf '{"text": ""}\n'
else
printf '{"text": ""}\n'
fi
}
check() {
[ ! -d "$HOME/decrypted" ] && return
output
inotifywait -q "$HOME/decrypted/.lock" > /dev/null 2>&1
output
inotifywait -q "$HOME/decrypted" > /dev/null
check
}
check