i3wm segments¶
-
powerline.segments.i3wm.mode(names={u'default': None})[source]¶ Returns current i3 mode
Parameters: names (dict) – Specifies the string to show for various modes. Use nullto hide a mode (defaultis hidden by default).Highligh groups used:
mode
-
powerline.segments.i3wm.scratchpad(icons={u'fresh': u'O', u'changed': u'X'})[source]¶ Returns the windows currently on the scratchpad
Parameters: icons (dict) – Specifies the strings to show for the different scratchpad window states. Must contain the keys freshandchanged.Highlight groups used:
scratchpadorscratchpad:visible,scratchpadorscratchpad:focused,scratchpadorscratchpad:urgent.
-
powerline.segments.i3wm.workspace(strip=False, workspace=None)[source]¶ Return the specified workspace name
Parameters: - workspace (str) – Specifies which workspace to show. If unspecified, may be set by the
list_workspaceslister if used, otherwise falls back to currently focused workspace. - strip (bool) – Specifies whether workspace numbers (in the
1: nameformat) should be stripped from workspace names before being displayed. Defaults to false.
Highlight groups used:
workspaceorw_visible,workspaceorw_focused,workspaceorw_urgent.- workspace (str) – Specifies which workspace to show. If unspecified, may be set by the
-
powerline.segments.i3wm.workspaces(strip=0, output=None, only_show=None)[source]¶ Return list of used workspaces
Parameters: - only_show (list) – Specifies which workspaces to show. Valid entries are
"visible","urgent"and"focused". If omitted ornullall workspaces are shown. - output (str) – May be set to the name of an X output. If specified, only workspaces on that output are shown. Overrides automatic output detection by the lemonbar renderer and bindings.
- strip (int) – Specifies how many characters from the front of each workspace name should be stripped (e.g. to remove workspace numbers). Defaults to zero.
Highlight groups used:
workspaceorw_visible,workspaceorw_focused,workspaceorw_urgent.- only_show (list) – Specifies which workspaces to show. Valid entries are