blob: 4d1935f9b427e55043f118e2d9fcfb1278ed6396 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
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"
fi
wmctrl -xl | sed "s/^[^.]*\.//;s/ \+\S\+ \+/ /;s/^/w /;s/ \+/ /g"
cat "$cache"
|