Opens a predefined app based on the currently focused i3 workspace.
Change your hotkey from i3-sensible-terminal to i3-sensible-app
-bindsym Mod4+Return exec i3-sensible-terminal
+bindsym Mod4+Return exec i3-sensible-app
Create the default apps config in ~/.config/i3/defaults.json
Example:
{
"1: ": ["albert", "toggle"],
"2: ": ["google-chrome-stable"],
"3: ": ["i3-sensible-terminal"],
"4: ": ["code"],
"5: ": ["nautilus"],
"6: ?": ["albert", "toggle"],
"7: ": ["evince"],
"8: ?": ["albert", "toggle"],
"9: ": ["xdg-open", "http://localhost:6680/iris"],
"10: ": ["mpv", "--idle"]
}
Now just shift to your desired workspace and press ⊞ Win + Enter ⏎
- i3 (and i3-msg)
- go (for compilation)
Open a terminal and run
go get github.com/fa7ad/i3-sensible-app
Clone this repo and change into the directory
git clone https://github.com/fa7ad/i3-sensible-app.git
cd i3-sensible-app/
Build the binary
go build
Move the directory to a folder in PATH
sudo install -Dm755 i3-sensible-app /usr/bin
Download the binary from releases
MIT License