aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
authorLibravatar Calvin Lee <cyrus296@gmail.com>2017-04-02 14:38:33 -0600
committerLibravatar Calvin Lee <cyrus296@gmail.com>2017-04-03 11:48:37 -0600
commit2445d279604d7be38c00db60ffde4279a3c75459 (patch)
tree030844d9fb13be7814dd760a6ffedbec8f5264cd /sway/commands.c
parentUpdate man page (diff)
downloadsway-2445d279604d7be38c00db60ffde4279a3c75459.tar.gz
sway-2445d279604d7be38c00db60ffde4279a3c75459.tar.zst
sway-2445d279604d7be38c00db60ffde4279a3c75459.zip
Impliment i3-style marks
This commit adds three commands to sway: `show_marks`, `mark` and `unmark`. Marks are displayed right-aligned in the window border as i3 does. Marks may be found using criteria. Fixes #1007
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c
index c330ebee..971ff505 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -190,6 +190,7 @@ static struct cmd_handler handlers[] = {
190 { "kill", cmd_kill }, 190 { "kill", cmd_kill },
191 { "layout", cmd_layout }, 191 { "layout", cmd_layout },
192 { "log_colors", cmd_log_colors }, 192 { "log_colors", cmd_log_colors },
193 { "mark", cmd_mark },
193 { "mode", cmd_mode }, 194 { "mode", cmd_mode },
194 { "mouse_warping", cmd_mouse_warping }, 195 { "mouse_warping", cmd_mouse_warping },
195 { "move", cmd_move }, 196 { "move", cmd_move },
@@ -203,12 +204,14 @@ static struct cmd_handler handlers[] = {
203 { "scratchpad", cmd_scratchpad }, 204 { "scratchpad", cmd_scratchpad },
204 { "seamless_mouse", cmd_seamless_mouse }, 205 { "seamless_mouse", cmd_seamless_mouse },
205 { "set", cmd_set }, 206 { "set", cmd_set },
207 { "show_marks", cmd_show_marks },
206 { "smart_gaps", cmd_smart_gaps }, 208 { "smart_gaps", cmd_smart_gaps },
207 { "split", cmd_split }, 209 { "split", cmd_split },
208 { "splith", cmd_splith }, 210 { "splith", cmd_splith },
209 { "splitt", cmd_splitt }, 211 { "splitt", cmd_splitt },
210 { "splitv", cmd_splitv }, 212 { "splitv", cmd_splitv },
211 { "sticky", cmd_sticky }, 213 { "sticky", cmd_sticky },
214 { "unmark", cmd_unmark },
212 { "workspace", cmd_workspace }, 215 { "workspace", cmd_workspace },
213 { "workspace_auto_back_and_forth", cmd_ws_auto_back_and_forth }, 216 { "workspace_auto_back_and_forth", cmd_ws_auto_back_and_forth },
214 { "workspace_layout", cmd_workspace_layout }, 217 { "workspace_layout", cmd_workspace_layout },