A command-line utility that helps you bind keys to find and display a window, or open it if there is no instance running in i3wm.
Project description
i3-find-or-open
This repo provides a command-line tool: i3-find-or-open
that can find a window by regex in your i3wm instance, and display it, or execute any command if it does not exist.
It is intended to help you bind keys that will reliably show you a program, whether or not it is open already.
Let's say I wanted to use this to bind $mod+o
to open my Obsidian vault:
bindsym $mod+o exec --no-startup-id "i3-find-or-open '^.* - vault - Obsidian v([1-9]|\.)+$' 'obsidian'"
Installation
i3-find-or-open is available on pypi, and the best way to install it (if you don't want to break your system python installation) is to use pipx (N.B. there is an Arch package python-pipx
to install this with).
pipx install i3-find-or-open
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for i3_find_or_open-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bf7cbf67c0c7a042d880384536edcf8c5d348c3f7ecb26c54e0093670a4661a |
|
MD5 | 17f0ca7d827e64d413ea74a39b9d563a |
|
BLAKE2b-256 | c873ab749ac2ff9a8a2f9fd1d416834a057478b5263ff4dabd6964c558922e1c |