i3wm open 2 applications with one keybinding?

Mario Kamenjak

I want to make a keybinding for i3wm that launches 2 GUI applications at the same time. Is that possible?

Adaephon

Yes. You can chain i3 commands by passing a list, which is separated by either , or ;. For example, this will open a terminal and xclock on pressing Super+x:

bindkey Mod4+x exec i3-sensible-terminal; exec xclock

Note: while exec i3-sensible-terminal will be run before exec xclock, there is no guarantee that the window for i3-sensible-terminal will open before the window of xclock. That is due to the fact that exec does not wait for a window to be mapped before returning. (In fact it can not wait, as there is no way to know, if an application is even going to open a window.)


For more information about command chaining have a look at the i3 User's Guide

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to launch two applications with one keybinding in i3?

Open a specific application in a *new* workspace with i3wm

Open JavaFX sub window in tiling mode (i3wm)

i3wm | Open application on startup if not in weekend

i3wm : start applications on specific workspaces when i3 starts

In i3wm how can I open programs on another workspace at startup?

Keybinding to open a specific file in vscode

Arch linux: Notifications not working in i3wm - dunst: CRITICAL: Cannot open X11 display

How to autostart more than one app in different workspaces in i3wm

i3wm: two monitors, one browser per monitor (dual head kiosk)

Mac Keybinding in Sublime Text 2

How can I open the Openbox applications menu from the Tint2 taskbar?

JPA: 2 applications needing to update one object

Nginx Config 2 Web Applications on one Server

How to change GUD breakpoint keybinding to the old one

How can I switch between open applications?

Which applications should I open with Bumblebee?

Sublime Text 3 keybinding priority

How can I show 2 different activities of one application at recent applications?

How can I launch 2 applications from current simultaneously (one in background)?

Is there a keybinding to focus an already-open search editor in VSCode?

How can I disable `v` keybinding in less?

How do I pass an arguments to an AbstractAction in a KeyBinding?

How do I set a keybinding for an extension in VSCode?

How do I override a default keybinding in LightTable?

Allow one Windows user to only execute 2 applications

Xmonad shift window to another screen and focus on it with one keybinding

keybinding in xterm to shift one line up using shift+up

Keybinding to make End go one character past the last character on the line