waybar changes 1
This commit is contained in:
21
modules/home/programs/waybar/bin/waybar-decrypted
Normal file
21
modules/home/programs/waybar/bin/waybar-decrypted
Normal 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
|
||||
Reference in New Issue
Block a user