Fixed scratchpad launcher utils
This commit is contained in:
12
bin/desktop/i3/launch-or-show-application.sh
Executable file
12
bin/desktop/i3/launch-or-show-application.sh
Executable 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";
|
Reference in New Issue
Block a user