def window_rules(text): "Window rules" return lines_starting_with("bspc rule ", text)
def theme(text): "Theme" return lines_starting_with("ZSH_THEME=", text)
def window_managers(text): "Window managers" return lines_starting_with("exec ", text)
def commands(text): "Commands bound to keybinds" indented = lines_starting_with(" ", text) stripped = (line.strip() for line in indented if not line.isspace()) return (line for line in stripped if line[0] != "#")
def readline_macros(text): "Readline macros" return lines_starting_with("bind ", text)
def font(text): "Font" return lines_starting_with("font ", text)
def colorschemes(text): "Colorschemes" return lines_starting_with("colorscheme ", text)
def ps1(text): "PS1" return lines_starting_with("PS1=", text)
def autostart(text): "exec" return lines_starting_with("exec --no-startup-id ", text)
def modkey(text): "Modkey" return lines_starting_with("set $mod ", text)
def outer_gaps(text): "Outer gaps" return lines_starting_with("gaps outer ", text)
def inner_gaps(text): "Inner gaps" return lines_starting_with("gaps inner ", text)
def modes(text): "Modes" return lines_starting_with("mode ", text)
def keybindings(text): "Keybindings" return lines_starting_with("bindkey ", text)
def vundle(text): "Vundle plugins" return lines_starting_with("Plugin ", text)
def exports(text): "Exports" return lines_starting_with("export ", text)
def plug(text): "Vim-plug plugins" return lines_starting_with("Plug ", text)
def ps2(text): "PS2" return lines_starting_with("PS2=", text)
def set_statements(text): "Set statements" return lines_starting_with("set ", text)
def aliases(text): "Aliases" return lines_starting_with("alias ", text)
def font(text): "Font" fonts = lines_starting_with("font = ", text) return (font.lower() for font in fonts)