diff options
author | Orestis Floros <orestisf1993@gmail.com> | 2018-04-21 15:21:04 +0300 |
---|---|---|
committer | Orestis Floros <orestisf1993@gmail.com> | 2018-04-21 16:50:57 +0300 |
commit | bd7a5ee48a4e6acba2a885508f0b26c6f4d963c3 (patch) | |
tree | b047cda81a148489305ca876fb67a68b4f87393d /parser-specs | |
parent | a40bcef4385bfc42920761afc596e538d8c56c30 (diff) | |
download | i3-bd7a5ee48a4e6acba2a885508f0b26c6f4d963c3.tar.gz i3-bd7a5ee48a4e6acba2a885508f0b26c6f4d963c3.zip |
cmd_border: improve width selection
- 'border toggle' now accepts an optional pixel argument which will be
ignored when switching to BS_NONE.
- 'border pixel' now defaults to 1 pixel instead of 2.
- Calling 'border normal' or 'border pixel' will use the configured
default_border_width if one exists. Also applies to floating windows.
Diffstat (limited to 'parser-specs')
-rw-r--r-- | parser-specs/commands.spec | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/parser-specs/commands.spec b/parser-specs/commands.spec index 4048768e..106dac99 100644 --- a/parser-specs/commands.spec +++ b/parser-specs/commands.spec @@ -86,16 +86,16 @@ state DEBUGLOG: # border normal|pixel [<n>] # border none|1pixel|toggle state BORDER: - border_style = 'normal', 'pixel' + border_style = 'normal', 'pixel', 'toggle' -> BORDER_WIDTH - border_style = 'none', 'toggle' + border_style = 'none' -> call cmd_border($border_style, 0) - border_style = '1pixel' - -> call cmd_border($border_style, 1) + '1pixel' + -> call cmd_border("pixel", 1) state BORDER_WIDTH: end - -> call cmd_border($border_style, 2) + -> call cmd_border($border_style, -1) border_width = number -> call cmd_border($border_style, &border_width) |