avatar.rc
author Myhailo Danylenko <isbear@ukrpost.net>
Thu, 30 Jun 2011 16:09:04 +0300
changeset 36 32424a111e97
parent 24 7aa499342e2b
permissions -rw-r--r--
remove api.h, offending 0.10.0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
     1
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
     2
# All options can be changed in runtime, so, feel free to experiment
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
     3
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
     4
# Directory, where avatars will be saved. Note, that without saving
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
     5
# avatar current implementation cannot show it. Avatars are saved by
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
     6
# their id (sha1sum of png data), and symlinked by jids. I.e.
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
     7
# 12345...679.png contains png data
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
     8
# foo@bar.org is symlink to 12345...679.png
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
     9
set avatar_directory = ~/.mcabber/avatars
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    10
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    11
# Set this to your terminal's font character dimensions in pixels.
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    12
# This will allow to retain real png image proportions.
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    13
set avatar_font_height = 16
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    14
set avatar_font_width  = 8
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    15
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    16
# Maximum width and height in characters. Can be omitted, then these
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    17
# will be autodetected based on COLUMNS and LINES variables (they
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    18
# must exist in mcabber's environment, i.e. you should export them
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    19
# or you will be limited to 80x25). 
24
7aa499342e2b Use new interface to obtain available screen space
Myhailo Danylenko <isbear@ukrpost.net>
parents: 23
diff changeset
    20
#set avatar_max_width  = 110
7aa499342e2b Use new interface to obtain available screen space
Myhailo Danylenko <isbear@ukrpost.net>
parents: 23
diff changeset
    21
#set avatar_max_height = 40
0
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    22
3
c920fcf835c7 Added background for transparent images
Myhailo Danylenko <isbear@ukrpost.net>
parents: 0
diff changeset
    23
# Background color to use for transparent images.
c920fcf835c7 Added background for transparent images
Myhailo Danylenko <isbear@ukrpost.net>
parents: 0
diff changeset
    24
# In fact in range 0..65535, but looks like actually matter only
c920fcf835c7 Added background for transparent images
Myhailo Danylenko <isbear@ukrpost.net>
parents: 0
diff changeset
    25
# first 9 bits (what does 9th bit I do not know, but it definitely
c920fcf835c7 Added background for transparent images
Myhailo Danylenko <isbear@ukrpost.net>
parents: 0
diff changeset
    26
# changes resulting image a bit)
c920fcf835c7 Added background for transparent images
Myhailo Danylenko <isbear@ukrpost.net>
parents: 0
diff changeset
    27
set avatar_background = 255
c920fcf835c7 Added background for transparent images
Myhailo Danylenko <isbear@ukrpost.net>
parents: 0
diff changeset
    28
23
2b7060ce1152 New module loading scheme
Myhailo Danylenko <isbear@ukrpost.net>
parents: 3
diff changeset
    29
module load avatar
0
29423ceb6adf Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    30