bin/sw

21 lines
274 B
Plaintext
Raw Normal View History

2021-04-22 14:25:48 +00:00
#! /bin/bash
file="$HOME/.local/share/unhide"
app="$1"
#target="$2"
tid=$(xdo id)
hidecurrent() {
echo $tid+$app >> $file & xdo hide
}
showlast() {
sid=$(cat $file | grep "$app" | awk -F "+" 'END{print $1}')
xdo show -r $sid
}
hidecurrent & $@ ; showlast