diff options
| author | filip <“filip.rabiega@gmail.com”> | 2026-01-18 11:44:26 +0100 |
|---|---|---|
| committer | filip <“filip.rabiega@gmail.com”> | 2026-01-18 11:44:26 +0100 |
| commit | 83954961af8b6337da100e038561f2fd975ac1fe (patch) | |
| tree | 33a45dbf91cc4c0b8975287b9537db8aa272505f /via-feed | |
| parent | afd02bfcce54e3252d356f34c25a155c855f3612 (diff) | |
| download | chadscripts-master.tar.gz chadscripts-master.tar.bz2 chadscripts-master.zip | |
Diffstat (limited to 'via-feed')
| -rwxr-xr-x | via-feed | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -3,10 +3,15 @@ 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 \( -name ".*" -o -path "$HOME/cell" -o -path "$HOME/phone/*" \) -prune -o -print | sort >> "$cache" + 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 -wmctrl -xl | sed "s/^[^.]*\.//;s/ \+\S\+ \+/ /;s/^/w /;s/ \+/ /g" -cat "$cache" +if [ "$CRON" = "1" ]; then + exit 0 +else + wmctrl -xl | sed "s/^[^.]*\.//;s/ \+\S\+ \+/ /;s/^/w /;s/ \+/ /g" + cat "$cache" +fi |
