I3: Difference between revisions

From Bitpost wiki
No edit summary
No edit summary
Line 5: Line 5:
* [[i3-gaps]] applied on top of i3, use setup_new_ubuntu.sh to build it
* [[i3-gaps]] applied on top of i3, use setup_new_ubuntu.sh to build it
=== layout management ===
=== layout management ===
You must use your precise workspace names.  Here's how you get them, STANDARDIZE ON THESE:
   m@case:~$ i3-msg -t get_workspaces
   m@case:~$ i3-msg -t get_workspaces
   [{"num":-1,"name":" ❶ aim ","visible":true,"focused":true,"rect":{"x":0,"y":24,"width":3840,"height":2136},"output":"HDMI-0","urgent":false},{"num":-1,"name":" ❺ bro ","visible":false,"focused":false,"rect":{"x":0,"y":24,"width":3840,"height":2136},"output":"HDMI-0","urgent":false},{"num":-1,"name":" ❷ aim ","visible":false,"focused":false,"rect":{"x":0,"y":24,"width":3840,"height":2136},"output":"HDMI-0","urgent":false},{"num":-1,"name":" ❹ fix ","visible":false,"focused":false,"rect":{"x":0,"y":24,"width":3840,"height":2136},"output":"HDMI-0","urgent":false},{"num":-1,"name":" ❾ mor ","visible":false,"focused":false,"rect":{"x":0,"y":0,"width":0,"height":0},"output":"HDMI-0","urgent":false}]
   [{"num":-1,"name":" ❶ aim ","visible":true,"focused":true,"rect":{"x":0,"y":24,"width":3840,"height":2136},"output":"HDMI-0","urgent":false},{"num":-1,"name":" ❺ bro ","visible":false,"focused":false,"rect":{"x":0,"y":24,"width":3840,"height":2136},"output":"HDMI-0","urgent":false},{"num":-1,"name":" ❷ aim ","visible":false,"focused":false,"rect":{"x":0,"y":24,"width":3840,"height":2136},"output":"HDMI-0","urgent":false},{"num":-1,"name":" ❹ fix ","visible":false,"focused":false,"rect":{"x":0,"y":24,"width":3840,"height":2136},"output":"HDMI-0","urgent":false},{"num":-1,"name":" ❾ mor ","visible":false,"focused":false,"rect":{"x":0,"y":0,"width":0,"height":0},"output":"HDMI-0","urgent":false}]
Save a workspace layout:
i3-save-tree --workspace " ❶ aim " >~/development/config/common/home/m/.i3/i3_layout_1.json
# Then you must edit it!  Compare it to the checked in version!
Apply a layout:
append_layout ~/development/config/common/home/m/.i3/i3_layout_1.json
I will set up layouts for workspaces 1, 3 and 5.

Revision as of 18:27, 25 June 2017

software

Most of i3 is installed during ubuntu install. Here's the pretty:

  • maim+slop+yaxg for screen captures, use Prtscrn
  • feh for wallpaper, make sure it's in .i3/config startup to set last-known on startup
  • i3-gaps applied on top of i3, use setup_new_ubuntu.sh to build it

layout management

You must use your precise workspace names. Here's how you get them, STANDARDIZE ON THESE:

 m@case:~$ i3-msg -t get_workspaces
 [{"num":-1,"name":" ❶ aim ","visible":true,"focused":true,"rect":{"x":0,"y":24,"width":3840,"height":2136},"output":"HDMI-0","urgent":false},{"num":-1,"name":" ❺ bro ","visible":false,"focused":false,"rect":{"x":0,"y":24,"width":3840,"height":2136},"output":"HDMI-0","urgent":false},{"num":-1,"name":" ❷ aim ","visible":false,"focused":false,"rect":{"x":0,"y":24,"width":3840,"height":2136},"output":"HDMI-0","urgent":false},{"num":-1,"name":" ❹ fix ","visible":false,"focused":false,"rect":{"x":0,"y":24,"width":3840,"height":2136},"output":"HDMI-0","urgent":false},{"num":-1,"name":" ❾ mor ","visible":false,"focused":false,"rect":{"x":0,"y":0,"width":0,"height":0},"output":"HDMI-0","urgent":false}]

Save a workspace layout:

i3-save-tree --workspace " ❶ aim " >~/development/config/common/home/m/.i3/i3_layout_1.json
# Then you must edit it!  Compare it to the checked in version!

Apply a layout:

append_layout ~/development/config/common/home/m/.i3/i3_layout_1.json

I will set up layouts for workspaces 1, 3 and 5.