Skip to content

Instantly share code, notes, and snippets.

@tyjak
Created February 24, 2019 11:15
Show Gist options
  • Select an option

  • Save tyjak/f3434d4ae819c1bb26f804002e9eef33 to your computer and use it in GitHub Desktop.

Select an option

Save tyjak/f3434d4ae819c1bb26f804002e9eef33 to your computer and use it in GitHub Desktop.
toogle open/quit App in i3 window manager
#!/bin/sh
ps -C "$1" -o pid= && i3-msg "[instance=\"$1\"] kill" || i3-msg "exec $1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment