#!/usr/bin/python
WindowGap = 4
LeftPadding = 4
BottomPadding = 4
TopPadding = 4
RightPadding = 4
NavigateAcrossWorkspaces = False  # True  # availabe in viewports desktops

EXCLUDE_APPLICATIONS = []
EXCLUDE_WM_CLASS = []

RESIZE_STEP = 72
MOVE_STEP = 72
MIN_WINDOW_WIDTH = 50
MIN_WINDOW_HEIGHT = 50

MAX_KD_TREE_BRANCH = 3

REGULARIZE_FULLSCREEN = True

# find out vim server name in window title, and send vim navigation command.
VIM_SERVER_NAME = " - (VIMSERVER\d+)$"
VIM_NAVIGATION_CMD = """vim --servername {vimserver} --remote-expr "TileFocusWindow('{target}')" """
VIM_SERVER_NAME = None

EMACS_WINDOW_NAME = ".+emacs.+"
EMACS_NAVIGATION_CMD = "emacsclient -e '(evil-window-{target} 1)'"
EMACS_WINDOW_NAME = None

# overwrite default configuration
import os.path

config_file = os.path.expanduser("~/.config/freetilerc")
try:
    s = open(config_file).read()
    exec(s)
except BaseException:
    pass
