Skip to content

Opens a predefined app based on the active i3 workspace

License

Notifications You must be signed in to change notification settings

fa7ad/i3-sensible-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Opens a predefined app based on the active i3 workspace

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages