Skip to content

Instantly share code, notes, and snippets.



Last active Nov 8, 2016
What would you like to do?
Get Windows like App Hotkey Start-up behavior. First Argument: Path to app. Second argument: App-class (wmctrl -lx)
contains() {
[[ $1 =~ $2 ]] && return 0 || return 1
app_list=$(wmctrl -lx | awk '{print $3}')
if contains "$app_list" "$2";
then wmctrl -x -a "$2" ;
else ("$1"&) ;

This comment has been minimized.

Copy link
Owner Author

@AKuederle AKuederle commented Jul 21, 2016

There is a updated version, with the additional functionality of minimizing the window available here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.