Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 1.37 KB

README.md

File metadata and controls

73 lines (52 loc) · 1.37 KB

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

-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 ⏎

Installation

Pre-requisites

  • i3 (and i3-msg)
  • go (for compilation)

INSTALL (with go) (preferred)

Open a terminal and run

go get github.com/fa7ad/i3-sensible-app

INSTALL (from git)

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

INSTALL (manual)

Download the binary from releases

LICENSE

MIT License