mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 13:42:23 +00:00
20 lines
273 B
Bash
20 lines
273 B
Bash
|
#! /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
|