Sridhar Sarnobat
Sridhar Sarnobat

Reputation: 25286

Can xbindkey simulate multiple serial keystrokes?

Suppose I want to assign F1 to do 2 things in succession, such as:

  1. Raise my browser window (using wmctrl perhaps - which is already bound to another key binding like F8)
  2. Bring focus to tab 1 (which is achieved with "Ctrl 1" in my browser of choice)

Can xbindkey syntax achieve this? Something like this:

"F8, Control + 1"
   F1

Upvotes: 2

Views: 495

Answers (1)

Zaz
Zaz

Reputation: 48819

Xbindkeys maps key presses to commands. To get it to simulate key presses, you'll need to use a program like XMacro.

Upvotes: 1

Related Questions