Implement new 'sticky' command to manually set, remove or toggle the sticky state on a window.

This commit is contained in:
Ingo Bürk
2015-08-22 23:37:41 +02:00
parent 2c338b6ae2
commit 9866b00802
7 changed files with 85 additions and 1 deletions

View File

@ -29,6 +29,7 @@ state INITIAL:
'kill' -> KILL
'open' -> call cmd_open()
'fullscreen' -> FULLSCREEN
'sticky' -> STICKY
'split' -> SPLIT
'floating' -> FLOATING
'mark' -> MARK
@ -183,6 +184,11 @@ state FULLSCREEN_COMPAT:
end
-> call cmd_fullscreen("toggle", "output")
# sticky enable|disable|toggle
state STICKY:
action = 'enable', 'disable', 'toggle'
-> call cmd_sticky($action)
# split v|h|vertical|horizontal
state SPLIT:
direction = 'horizontal', 'vertical', 'v', 'h'