from functools import partial from cpywm import ( AltKey, Shift, Configuration, Keybind, KillClient, view_tag, export, Tag, ) __requires__ = ["dmenu_run", "xterm"] COL_GRAY1 = "#222222" COL_GRAY2 = "#444444" COL_GRAY3 = "#bbbbbb" COL_GRAY4 = "#eeeeee" COL_CYAN = "#005577" DMENU_FONT = "monospace:size=10" DMENU_COMMAND = [ "dmenu_run", "-fn", DMENU_FONT, "-nb", COL_GRAY1, "-nf", COL_GRAY3, "-sb", COL_CYAN, "-sf", COL_GRAY4, ] TERM_COMMAND = ["xterm"] @export class Default(Configuration): """A default configuration.""" MODKEY = AltKey ModKeybind = partial(Keybind, MODKEY) KEYS = [ # Basic keybinds ModKeybind("d", invoke=DMENU_COMMAND), ModKeybind("Return", invoke=TERM_COMMAND), ModKeybind(Shift, "q", invoke=KillClient), ] TAGS = [Tag(i) for i in range(10)] + [MyTag()]