diff options
Diffstat (limited to 'scripts/focus_app.sh')
| -rwxr-xr-x | scripts/focus_app.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/focus_app.sh b/scripts/focus_app.sh new file mode 100755 index 0000000..955a15d --- /dev/null +++ b/scripts/focus_app.sh @@ -0,0 +1,9 @@ +APP=$1 +WID=$(xdotool search --class "$APP" | head -n 1) + +if [ -z "$WID" ]; then + nohup $APP &>/dev/null & +else + xdotool windowactivate "$WID" +fi + |
