https://github.com/fa7ad/i3-sensible-app
Opens a predefined app based on the active i3 workspace
https://github.com/fa7ad/i3-sensible-app
app-launcher golang i3wm
Last synced: about 1 year ago
JSON representation
Opens a predefined app based on the active i3 workspace
- Host: GitHub
- URL: https://github.com/fa7ad/i3-sensible-app
- Owner: fa7ad
- License: mit
- Created: 2018-12-07T13:57:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-02T15:42:55.000Z (almost 7 years ago)
- Last Synced: 2025-04-20T18:38:58.840Z (about 1 year ago)
- Topics: app-launcher, golang, i3wm
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 27
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# i3-sensible-app
Opens a predefined app based on the currently focused i3 workspace.
## Usage
Change your hotkey from i3-sensible-terminal to i3-sensible-app
```diff
-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:
```json
{
"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 ⏎**
## Installation
### Pre-requisites
* i3 (and i3-msg)
* go (for compilation)
### INSTALL (with go) (*preferred*)
Open a terminal and run
```bash
go get github.com/fa7ad/i3-sensible-app
```
### INSTALL (from git)
Clone this repo and change into the directory
```bash
git clone https://github.com/fa7ad/i3-sensible-app.git
cd i3-sensible-app/
```
Build the binary
```bash
go build
```
Move the directory to a folder in PATH
```bash
sudo install -Dm755 i3-sensible-app /usr/bin
```
### INSTALL (manual)
Download the binary from [releases](https://github.com/fa7ad/i3-sensible-app/releases)
## LICENSE
MIT License