20
20
# Notes: Avant Window Navigator preferences window
26
LOCALEDIR = os.path.join (PREFIX, "share/locale")
27
PKGDATADIR = os.path.join (PREFIX, "share/avant-window-navigator")
23
from awn import CONFIG_DEFAULT_GROUP as DEFAULT_GROUP
27
LOCALEDIR = os.path.join (PREFIX, "share", "locale")
28
PKGDATADIR = '/usr/local/share/avant-window-navigator'
30
HOME_CONFIG_DIR = os.path.join(os.path.expanduser("~"), ".config", "awn")
31
HOME_APPLET_DIR = os.path.join(HOME_CONFIG_DIR, "applets")
32
HOME_LAUNCHERS_DIR = os.path.join(HOME_CONFIG_DIR, "launchers")
33
HOME_THEME_DIR = os.path.join(HOME_CONFIG_DIR, "themes")
34
HOME_CUSTOM_ICONS_DIR = os.path.join(HOME_CONFIG_DIR, "custom-icons")
37
# AwnConfigClient Groups/Keys
38
AWN = DEFAULT_GROUP #group
39
AUTO_HIDE = "auto_hide" #bool
40
PANEL_MODE = "panel_mode" #bool
41
KEEP_BELOW = "keep_below" #bool
44
ROUNDED_CORNERS = "rounded_corners" #bool
45
CORNER_RADIUS = "corner_radius" #float
46
RENDER_PATTERN = "render_pattern" #bool
47
PATTERN_URI = "pattern_uri" #string
48
PATTERN_ALPHA = "pattern_alpha" #float
49
GLASS_STEP_1 = "glass_step_1" #string
50
GLASS_STEP_2 = "glass_step_2" #string
51
GLASS_HISTEP_1 = "glass_histep_1" #string
52
GLASS_HISTEP_2 = "glass_histep_2" #string
53
BORDER_COLOR = "border_color" #string
54
HILIGHT_COLOR = "hilight_color" #string
55
SHOW_SEPARATOR = "show_separator" #bool
56
SEP_COLOR = "sep_color"
58
BAR_HEIGHT = "bar_height" #int
59
BAR_ANGLE = "bar_angle" #int
60
ICON_OFFSET = "icon_offset" #int
62
WINMAN = "window_manager" #group
63
SHOW_ALL_WINS = "show_all_windows" #bool
64
LAUNCHERS = "launchers" #list
67
ACTIVE_PNG = "active_png" #string
68
ARROW_COLOR = "arrow_color" #color
69
TASKS_H_ARROWS = "tasks_have_arrows" #bool
70
ARROW_OFFSET = "arrow_offset"
71
ICON_EFFECT = "icon_effect" #int
72
NAME_CHANGE_NOTIFY = "name_change_notify" #bool
74
TITLE = "title" #group
75
TEXT_COLOR = "text_color" #color
76
SHADOW_COLOR = "shadow_color" #color
77
BACKGROUND = "background" #color
78
FONT_FACE = "font_face" #string
80
APPLETS = "applets" #group
81
APPLET_LIST = "applets_list" #list
84
I18N_DOMAIN = "avant-window-navigator"
86
def i18nize(symbol_table):
89
locale.setlocale(locale.LC_ALL, '')
90
gettext.bindtextdomain(I18N_DOMAIN, LOCALEDIR)
91
gettext.textdomain(I18N_DOMAIN)
92
symbol_table['_'] = gettext.gettext