Skip to content

Commit

Permalink
Change description + command parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
numirias committed Dec 14, 2017
1 parent 575b34c commit 6229b13
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Build Status](https://travis-ci.org/numirias/qtile-plasma.svg?branch=master)](https://travis-ci.org/numirias/qtile-plasma)
[![codecov](https://codecov.io/gh/numirias/qtile-plasma/branch/master/graph/badge.svg)](https://codecov.io/gh/numirias/qtile-plasma)

Plasma is an advanced, flexible layout for [Qtile](https://github.com/qtile/qtile/).
Plasma is a flexible, tree-based layout for [Qtile](https://github.com/qtile/qtile/).

If you're looking for a well-tested and maintained alternative to Qtile's default layouts, give it a try.

Expand Down Expand Up @@ -160,33 +160,33 @@ window.</td>
window.</td>
</tr>
<tr>
<td><code>size(val)</code></td>
<td><code>size(x)</code></td>
<td>Change size of current window.<br>
(It's recommended to use <code>width()</code>/<code>height()</code> instead.)</td>
</tr>
<tr>
<td><code>width(val)</code></td>
<td><code>width(x)</code></td>
<td>Set width of current window.</td>
</tr>
<tr>
<td><code>height(val)</code></td>
<td><code>height(x)</code></td>
<td>Set height of current window.</td>
</tr>
<tr>
<td><code>reset_size()</code></td>
<td>Reset size of current window to automatic (relative) sizing.</td>
</tr>
<tr>
<td><code>grow(amt)</code></td>
<td><code>grow(x)</code></td>
<td>Grow size of current window.<br>
(It's recommended to use <code>grow_width()</code>/<code>grow_height()</code> instead.)</td>
</tr>
<tr>
<td><code>grow_width(amt)</code></td>
<td><code>grow_width(x)</code></td>
<td>Grow width of current window.</td>
</tr>
<tr>
<td><code>grow_height(amt)</code></td>
<td><code>grow_height(x)</code></td>
<td>Grow height of current window.</td>
</tr>
</table>
Expand Down
24 changes: 12 additions & 12 deletions plasma/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,43 +213,43 @@ def cmd_mode_vertical_split(self):
"""
self.add_mode = AddMode.VERTICAL | AddMode.SPLIT

def cmd_size(self, val):
def cmd_size(self, x):
"""Change size of current window.
(It's recommended to use `width()`/`height()` instead.)
"""
self.focused_node.size = val
self.focused_node.size = x
self.refocus()

def cmd_width(self, val):
def cmd_width(self, x):
"""Set width of current window."""
self.focused_node.width = val
self.focused_node.width = x
self.refocus()

def cmd_height(self, val):
def cmd_height(self, x):
"""Set height of current window."""
self.focused_node.height = val
self.focused_node.height = x
self.refocus()

def cmd_reset_size(self):
"""Reset size of current window to automatic (relative) sizing."""
self.focused_node.reset_size()
self.refocus()

def cmd_grow(self, amt):
def cmd_grow(self, x):
"""Grow size of current window.
(It's recommended to use `grow_width()`/`grow_height()` instead.)
"""
self.focused_node.size += amt
self.focused_node.size += x
self.refocus()

def cmd_grow_width(self, amt):
def cmd_grow_width(self, x):
"""Grow width of current window."""
self.focused_node.width += amt
self.focused_node.width += x
self.refocus()

def cmd_grow_height(self, amt):
def cmd_grow_height(self, x):
"""Grow height of current window."""
self.focused_node.height += amt
self.focused_node.height += x
self.refocus()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name='qtile-plasma',
packages=['plasma'],
version='1.4.0',
description='An advanced, flexible layout for Qtile',
description='A flexible, tree-based layout for Qtile',
author='numirias',
author_email='[email protected]',
url='https://github.com/numirias/qtile-plasma',
Expand Down

0 comments on commit 6229b13

Please sign in to comment.