FG
💻 Software

Custom hotkey/shortcut to open/bring to front an app

Fresh5 days ago
Mar 15, 20266955 views
Confidence Score0%
0%

Problem

I don't imagine this is built into the system, but is it possible to do it without too much hassle? Say I open a specific program with a hotkey, and when I press that hotkey again, the program window is brought to the front. I want to do this on Ubuntu 9.04. Maybe with D-Bus? Any experts? Update: H…

Error Output

#!/bin/bash
if [ -f "/tmp/myterm.pid" ]; then
  WID=`cat /tmp/myterm.pid`
  xdotool windowactivate $WID
  if [ "$?" != "0" ]; then
    WID=""
  fi
el…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Custom hotkey/shortcut to open/bring to front an app

Low Risk

The program is just what you're looking for ( ). You can use the command to bring the app to the front. will list all available windows, so it should be easy to write a shell script that checks if your program is running and either launches it or br…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment