Skip to content
Snippets Groups Projects
Commit b515e0e9 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

KEYMAP fullsecrren + show statusbar

parent 6c8270fc
Branches
No related tags found
No related merge requests found
......@@ -118,6 +118,14 @@ def CONT_TOGGLE(self, prop_name):
assert_in(prop_name, ["fullscreen", "floating", "sticky"])
self.prop_name = prop_name
@action_init()
def FULLSCREEN(self, on=True):
self.on = on
@action_init()
def SHOW_STATUSBAR(self, on=True):
self.on = on
@action_init()
def RESTART_MANAGER(self, prop_name):
assert_in(prop_name, ["fullscreen", "floating", "sticky"])
......
......@@ -97,6 +97,9 @@ def x(self):
@action_serialize("CONT_TOGGLE")
def x(self):
return f"{self.prop_name} toggle"
@action_serialize("FULLSCREEN")
def x(self):
return f"fullscreen {'enable' if self.on else 'disable'}"
@action_serialize("GO_MODE")
def x(self):
return f'mode "{self.mode.name or "default"}"; exec '+cmd_expand(f"i3-mode-log '{self.mode.name or 'default'}'")
......@@ -113,6 +116,9 @@ def f(self):
def f(self):
return g["CONFIRM_CMD"]("i3-msg exit", "Do you really want to EXIT i3?")
@action_serialize("SHOW_STATUSBAR")
def x(self):
return f"bar mode {'dock' if self.on else 'invisible'}"
load_main()
if have_i3_woman:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment