I3

From Things and Stuff Wiki
Jump to navigation Jump to search


General

2009

Based on wmii, tiling/floating.






i3-msg exec application
  # start your application on the workspace where it was called



  • https://github.com/greshake/i3status-rust - a feature-rich and resource-friendly replacement for i3status, written in pure Rust. It provides a way to display "blocks" of system information (time, battery status, volume, etc) on the i3 bar. It is also compatible with sway.






bindsym $mod+n exec i3-msg move to container workspace $(($(wmctrl -d | wc -l) + 1))
  # move to next numbered workspace whether existing or empty



  • https://github.com/joepestro/i3session - remembers what's running in your i3 workspaces by saving a session file (in ~/.i3/session). It is then able to restore the running processes (and their simple orientation) to one or more workspaces. Since i3session executes i3 commands sequentially (tree traversal), changing focus during restore will affect where clients open. By default, the i3-nagbar will appear during restore with a message to remind you of this.
  • https://github.com/pitkley/i3nator - Tmuxinator for the i3 window manager. It allows you to manage what are called "projects", which are used to easily restore saved i3 layouts (see Layout saving in i3) and extending i3's base functionality by allowing you to automatically start applications too.



jq:

.[].num

.[] | select(.visible and .focused).num+1)

if ([(.[][] | select(.visible == true) | select(.focused == true).num)+1] as $desk | [.[][].num] as $array | $array | contains($desk)) == true then "one" else "two" end