summaryrefslogtreecommitdiff
path: root/via-feed
diff options
context:
space:
mode:
Diffstat (limited to 'via-feed')
-rwxr-xr-xvia-feed30
1 files changed, 15 insertions, 15 deletions
diff --git a/via-feed b/via-feed
index d0d2544..af78b17 100755
--- a/via-feed
+++ b/via-feed
@@ -2,23 +2,23 @@
cache="$HOME/.cache/via"
-if [[ "$1" == "-r" ]] || [[ ! -e "$cache" ]]; then
- cat "$HOME/.config/via/shortcuts" > "$cache"
- cat "$HOME/.config/via/websites" >> "$cache"
- find "$HOME" -mindepth 1 \
- \( \
- -type d -name ".*" ! -path "$HOME/.scripts" \
- -o -path "$HOME/cell" \
- -o -path "$HOME/phone/*" \
- \) -prune \
- -o -print \
- | sort >> "$cache"
- # notify-send "via cache updated."
+if [[ $1 == "-r" ]] || [[ ! -e $cache ]]; then
+ cat "$HOME/.config/via/shortcuts" >"$cache"
+ cat "$HOME/.config/via/websites" >>"$cache"
+ find "$HOME" -mindepth 1 \
+ \( \
+ -type d -name ".*" ! -path "$HOME/.scripts" \
+ -o -path "$HOME/cell" \
+ -o -path "$HOME/phone/*" \
+ \) -prune \
+ -o -print |
+ sort >>"$cache"
+ # notify-send "via cache updated."
fi
if [ "$CRON" = "1" ]; then
- exit 0
+ exit 0
else
- wmctrl -xl | sed "s/^[^.]*\.//;s/ \+\S\+ \+/ /;s/^/w /;s/ \+/ /g"
- cat "$cache"
+ wmctrl -xl | sed "s/^[^.]*\.//;s/ \+\S\+ \+/ /;s/^/w /;s/ \+/ /g"
+ cat "$cache"
fi