Fixed scratchpad launcher utils

This commit is contained in:
Wryn Wagner
2021-02-24 13:32:04 -07:00
parent 4ebb6179c0
commit 9584de22d8
3 changed files with 32 additions and 15 deletions

View File

@ -0,0 +1,12 @@
CLIENT_CLASS="$1"
APPLICATION="$2"
echo "client class:'$CLIENT_CLASS'"
echo "application :'$APPLICATION'"
xdotool search --class "$CLIENT_CLASS" >/dev/null 2>&1 || {
i3-msg "exec --no-startup-id $APPLICATION;"
}
i3-msg "[class=$CLIENT_CLASS] move scratchpad";
i3-msg "[class=$CLIENT_CLASS] scratchpad show";