gkrellm-xkb-1.05/0040755000077500007750000000000010015704630012410 5ustar triptripgkrellm-xkb-1.05/doc/0040755000077500007750000000000010015704625013161 5ustar triptripgkrellm-xkb-1.05/doc/ChangeLog0100644000077500007750000000234710015704624014735 0ustar triptrip 21 Feb 2004 gkrellm-xkb (1.05) * Right-clicking changes the active layout by switching to the next layout in a rotating manner. Yuri Arapov * A bug preventing the Great Britain flag from being displayed has been fixed. * A Hungarian flag has been added. Attila Vasarhelyi * Support for the _XKB_RULES_NAMES root window property has been added. * Code cleanups. 5 Jan 2004 gkrellm-xkb (1.04) * Added a popup menu to switch between the keyboard layouts. * Added Caps-lock and Num-lock indicators. * Fixed a crash in GNOME/KDE. * Changed the Arabic flag to flag of the Arabic League. gkrellm-xkb (1.03) * Detect layout variants (phonetic etc.) correctly. * Added Arabic flag. gkrellm-xkb (1.02) * Added Israelian flag. Serge * Added Estonian, Latvian and Lithuanian flags. Dalius * Added rpmbuild .spec file. Rui Miguel Seabra gkrellm-xkb (1.01) * Very *slow* redraw after an expose event was fixed. * Optimized the algorithm in xkb_find_flag(). * Added greek flag. Kyritsis Athanasios * Added vim folds to main.c. gkrellm-xkb (1.00) * Initial Release. gkrellm-xkb-1.05/doc/index.html0100664000077500007750000001166510015666437015176 0ustar triptrip gkrellm xkb plugin

Valid XHTML 1.0!

gkrellm xkb plugin

Current version: 1.05 (ChangeLog)

About

gkrellm-xkb is a plugin for gkrellm that displays a small country flag indicating the currently-active national keyboard layout and two small CapsLock/NumLock indicators. It also has a popup menu to switch between the keyboard layouts. The plugin requires gkrellm2.

The plugin uses the XKB X Window extension and doesn't work if the extension is either not available or disabled. It's enabled in the default configuration of XFree86 version 4 and above. Therefore the plugin should work on any modern *NIX installation.

The screenshot on the right is worth many words of description. It shows the flag and a tooltip which contains the name of the active keyboard layout.

Left-clicking on the flag shows a pop-up menu, from which the active layout may be switched. Right-clicking changes the active layout by switching to the next layout in a rotating manner.

The plugin doesn't work with the keymap switcher in KDE.

Authors

Tomas Styblo <tripie@cpan.org>

The code is available under the GNU General Public License (GPL).

screenshot
gkrellm-xkb-1.05/doc/main.css0100664000077500007750000000142007752031473014623 0ustar triptrip body { padding: 0px; margin: 0px; } pre { padding: 1em; background-color: rgb(240,240,250); } #td-index { padding: 2em; padding-top: 1em; padding-left: 0px; background-color: rgb(230,230,250); color: black; } #td-index a:visited { color: black; } #td-index a { color: rgb(0,0,255); } #index-imgs { margin-left: 20px; } #td-main { padding: 2em; padding-top: 0px; } #title { background-color: rgb(230,230,250); color: black; padding: 8px; margin-top: 0px; } #version { background-color: rgb(230,230,250); color: black; padding: 8px; margin-top: 0px; } #changelog { margin-left: 10px; } #td-scr { padding: 0px; } #img-scr { margin: 0px; border: 0px; padding: 0px; } gkrellm-xkb-1.05/doc/xkb.jpg0100644000077500007750000002754407675703214014473 0ustar triptripJFIFHHCreated with The GIMPC    $.' ",#(7),01444'9=82<.342C  2!!22222222222222222222222222222222222222222222222222sr"P  !1A"Qa2q#BS34RTbUds$rc56DE3!1AQ"aRq3B24b ?d4NZB= 0+a`7OfI8`u0b=}#wm G3 U&RLJ>lY"9tr?,>)-q`;/k|T{bzy|,ذҶOM]v>&0 HXLH"r%Kf&iܺn3M%^aWOCEu$S o,TrPԭSҪȪQ( 0bGf2iIg#R)'sf]12ѠCLZx皖EHܖeVB dlCM2ƒj,vr!@؉0 bauQr9\ ~cEW̠[؋sk*0F#z]'gĔPZ)5_Iqfsi[+S1ҙJ ƒP; 5.hYvp6%m001Q3wÕ0˴ṰXx`MWmOR?fkm˒nXX_Dw`Cr[FRHHjbT$vMݿCIjXwϻm HZnLnj!pҦ}I-iՇ1*=kYnlﲲe5_ZtIinBZV]@-4b lH F;S',\L(ں*U,uQB8p/8 "Άf.># /+85e3KA K5gb7|,K2;ZZUy}?U, Í]#a`@b g}7_ 8D Ӏ0a'> vҰXʬ p1GipAX=A&m |OQ煯 LI+ap\miƵfRB@@&'soZ6bNtx;r۱a}b3OnnK#op xCL-k[ ?G(koxn)՜wϻa伥 i]2(%Hlr9NhUKeYKCf"d!I^=R)6 wR; &d(2Yԍ*6svR><&iQNt>^xZ 8IZnD4Zy_+If;0?9-~1cNO, bF׵<,Z /Z"Ti2Yؾ<~xW|y#g "'*RǢlrz|g-徿ݯ0"ޙ nLU ѷGPc L1M#+Sgot\'徿q 2]9DV58нΔIrl7;_N ֗)Ɗwƫ徿6j*c.H꽬 ž45[``_فFvz@KtW#X\wy\=-"Tf&LA$۝lZ˳nXa}b3Ljr6 o5BC6M,RY6/fZb5qr׻,[H$7R<~Â5Zțv<$e#HXfbKllwIW+wGțDou6<#E2:\*l$Fn[|U.*cn/[GMv}$*g1v0wR T U na!&HH0Cw,8`bn\2!]fp(c4,YՁpI4ά׹[ÁAm~ 3ItX_Qs5uG_N}<9@J5,B$xᬢOza 40YW>H 7;{q>Yu,eUFJEKD4 LD B[pK_lmQ,<35g4HHݣ,e)fygh2^9?KHӨ 㗈مViW=EMEd UDpV%i"0O۟Jo{M?TjU˧.ӿ]̯~Q/KyLK++(&U2n=l9eC#RȻ*X=:kߟK`' XNCǴ\_ FExث|F$ͣ,hPң^XΔkNLڵ$P%X}JXrNol&,Jf5,!l>7]q{^8i d Mp~j)t4v;￉>x7OGPUeVe\S}@" ym^c-\C @r"~HdݔdlJH^G^[^znxIPRиآFĎc ƒ|LrDFIُR-r7uiM7n`8a~5`ZlKw`NۧYwwfm6^xpBw'i-[#=/`֭lFHd &|jutU,{q*CɂI#=9*2@%A_=x߻R @FyeC0LF}`{P^e,Jx|6j7лYmtd5+,ia\z=& ]jJ&^ ul.W WQ8nԿNOxw=v[Dؓ%Y )zXh"ѧʍ]@jk@y4&cŀMr<`F"H lnF9 ;]quAGZH&ᩰi G5yGzŭN+3$M).b`A$ l. b)G.T4oف1@빪'QM1lYmssabILUteFSx0ߧE7{- mabl~Mt)xGY^i&RICI s+b#,kppAŵFsQ*<)H B!B9 aOM`7;3E]VZ.Kmc1Kr f:I66醸R~#}LGBC\u f&*WZ UAu;R37mGeQz!Y&7lG+o w„q Zm:euI }?QjuzqZ3i3i~BTEo^ֲ?[Fjbֿ]:vV),'/8%8r3uFr,Tn_lZZ6B)ˆ-$Xk["[,bQ/Y:s$y6u-,ET$F Ku._rg[ 5jYuP =װwl|wᫍwQtuFx #ָ6 `2M141"d\)nj{``mがĎ`Yj8)RHҥw== .eNY궑kAyۀImqoa' *eB> s&$|m˝dIlF 6>шjUZC&I_hjdR+v~aP=/955nG@aX yz'cW z[b|8cyC;;rWkK{Kع媦*SW*e*u =@s~M]U- Gy4F%^.G [^l  K_TC;&p^_Q|ó_TZ-ُ|f~ǡps9o8áyGt&l rODK +oSHXRs’EP#J)؆L76b+ QX6$ x®&GvI[` LdVKQūQ\6/<.Y#Z$X=MrR"iq5\LM{ߚ~0;: T8!ca':*$@d+ O`nt牆 3)cZ"rWmCP#HƫyX,(ܓIT]< ƙcM2 /rn`=&v+J|dq VȚBl:nm}-TI%*DvPMv}]FcWWMOMQS$Bo𲍹qUש_D}(¨fjf HIC*k0" QvW/GMSn2+/';[,P<ڢze'Gm@;(-nG ,g Sj,%Чkzr<6"*3YdMU'q5M鵬X;;EWMMR"ꗳLyrqE#UqAk3Z JeJxp7v5( 9 rJXm@*Z}6}VKÆy)#VӨۙ˙=0]ݗ&N5,h$0GRf)]5iK<ŚC5N$? ep [{[ŬͬO"A~i0Ki:F#1Y-_]t_3Ev-˲?DIJ*WJH%DeK)"<7Q8^6aWP9*8z[W,Im^z?z>G |:/ F `|v`{``}PlhN罠ʢ̨-Zy^EEE~729Yڂ,%?YVbCr)%K&'k MΏ復1>=$_[i='i;SM=\sfeUhZ Hj1nTŵ_NsS%; h3|" FbH ޙq5zޑ&[\`3ԪSܛm6 88Ih;6ՉN8uk^U{WUVg1M%$Ե E[S/Zx5ViD ;iP"fOdbL/, fEeP5g5bps)SHё֒6(+ݺa&JZ4S)f1ܨ?`dݦ9j&c AUbF7]K!e=LH^:2lÅ*-La(ʷ%c݌ܳ'sP}O.3ooQl +ngƣװ^o;`/l=hP7ÓW^rgQx݈6_ZO}rړ?;4scYR {NfZ@heޅBŞWx_ڮdkfSDV!,;̞g[=7~m%߿ + ]si>[=7o߫S/P-?M?>[=7r,t}M'kǥZxwݮj7uSI}V^kǥZx7P"P ʚ^FWL%_o'F>1oX`crJ]a%Xlnȉ9 i&.2GW_ɯbTxG3߼ aK 1``000?gkrellm-xkb-1.05/doc/update-index.sh0100775000077500007750000000007007747317165016124 0ustar triptrip#!/bin/sh lftp -e "mput -Ogkrellm/xkb index.html" sweb gkrellm-xkb-1.05/doc/fm-xkb.jpg0100644000077500007750000000670507677160421015066 0ustar triptripJFIFHHCreated with The GIMPC    $.' ",#(7),01444'9=82<.342C  2!!22222222222222222222222222222222222222222222222222`r"E !1"AQaRq#2$B5ESUb47Trs%!QA1q"B ?aτdK] L7տLa39ij^@psOjL` 8GA麔n W ȑeBm{fVXF _žQY5mȹK2[?hiVm~f-)Tp?g ˘5$A1۾;=Q:Xp[_}I]ENrE|:r,cyx@\CM3M_LX#)&iQv!Rqradur [E2ǙVfUV-CIOͫ 1 *5'Mm$ƒ4(\I ڢ M̃b($P'aSq]eM =CҔHjH>73~ /W_ݷhN˷`us8Y)(t1s}h%V{ {bqԲ.j%Dr$6&$qm1_5))ك(7 $e#p;'ɴ֣bzܼRBYtpcPlNk%n5]SeϒITYʬ|?<1JG/΢6Z4Lx^SDEVxTs#!B M TT0X&1]n ӗٱ'b!80TԮf2i4()ܐ}=K~m#K[ X- 7/,XdZ|M+RBMt0`ڎHϨ4s=j ԟXX&%0mBiz~Xǯ3KTX~,`,l[3&z3qf?r}88,alpNkx󲨾qfoHۧ^g݈|プl&$c: *ZGie6jonOFdfq˖RURLeTJ"PlI܁`wW=E,5( 2+:zY_ͭϥG9Q-e've6؁ww#j3xxI'P8[}od♳8kt~ h1jgKWx89cFvӣe%H͇]II]Q^Z95ZxaQQY422G.BR V8z|]Ȳ*jcmN@#Yu;]H6jonOM9I[/}GǣDw%S^'NU0>8NQqeJzCh0Ѻq9eEK,QL:I֊yZ_D84CKr UpomI| 3f+ #Vp7ĻjN-gNklYT]M'e'W̥!22xea2LVz^ đk‹+ȹ|I-Zk~L'uSG?0V;26TE|ƒe(+iEjɁcb {|HJxrA 쟖 [%4S©OO[4Q.:U\: $ s79]gٝ/E~,5>WSDe(&|mgLCE{=0zM#~]ժi}YSPQ._NADuύye F6:mqGAT4չ]MRO)G[!\yIoE*-mwĘ,!zi.|*ϣzۓk&*),Ɵ.zZ< HƎ`TEլy8oXTj|(ܫ<4j~w;:Ȥ3ʔ\'-ٛcչͲRޓi $ `ɸrP䴌Hs$Z@;/fHs T٦Tk$ceN}A]#pN9#`9`K #};l03f(U¼ͻ cWaa `Wd8w-OgS,2C%|2 `)u{RqDb8&` ރF7ٻOS|-21mÜC8~IBPo[Hm_?'eK ? }}} */ /* includes {{{ */ #include #include #include #include #include #include #include #include /* }}} */ /* include all the XPM files with flags {{{ */ #include "flags/ar.xpm" #include "flags/be.xpm" #include "flags/br.xpm" #include "flags/cz.xpm" #include "flags/cz_prog.xpm" #include "flags/de.xpm" #include "flags/dk.xpm" #include "flags/ee.xpm" #include "flags/el.xpm" #include "flags/es.xpm" #include "flags/fi.xpm" #include "flags/fr.xpm" #include "flags/gb.xpm" #include "flags/hr.xpm" #include "flags/hu.xpm" #include "flags/it.xpm" #include "flags/il.xpm" #include "flags/lt.xpm" #include "flags/lv.xpm" #include "flags/nl.xpm" #include "flags/no.xpm" #include "flags/pl.xpm" #include "flags/ru.xpm" #include "flags/se.xpm" #include "flags/sk.xpm" #include "flags/us.xpm" #include "flags/unknown.xpm" #include "caps_on.xpm" #include "caps_off.xpm" #include "num_on.xpm" #include "num_off.xpm" /* }}} */ /* structs {{{ */ typedef struct { char *name; char **flag_xpm; } xkbGroup; /* }}} */ /* macros {{{ */ #define XKB_CTRLS_MASK (XkbAllControlsMask & ~(XkbInternalModsMask | XkbIgnoreLockModsMask)) #define XKB_MAX_GROUPS XkbNumKbdGroups #define CONFIG_KEYWORD "xkb" #define PLUGIN_PLACEMENT MON_UPTIME #define PLUGIN_NAME "xkb" #define FULL_UPDATES 1 #define PANEL_HEIGHT 18 #define STARTS_WITH(group, flag) !strncmp(group, flag, strlen(flag)) #define MAX_PROPERTY_VALUE_LEN 4096 /* }}} */ /* public funcs {{{ */ GkrellmMonitor *gkrellm_init_plugin(void); /* }}} */ /* static funcs {{{ */ static void xkb_error(char *msg); static Bool xkb_init(Display *disp); static Bool xkb_status(Display *disp, int *num_groups, int *active_group, xkbGroup *groups); static Bool xkb_get_groups_num(Display *disp, XkbDescPtr kb, int *num_groups); static Bool xkb_get_groups_names(Display *disp, XkbDescPtr kb, int num_groups, xkbGroup *groups); static void xkb_find_flag_from_name(xkbGroup *group); static Bool xkb_find_flag_from_rules(gchar **xkb_rules, int group_num, xkbGroup *group); static gchar **parse_xkb_rules_names(); static Bool xkb_get_active_group(Display *disp, int *active_group); static void xkb_free_groups(int num_groups, xkbGroup *groups); static void update_plugin(); static gint panel_expose_event(GtkWidget *widget, GdkEventExpose *ev, gpointer gw); static void keyboard_selection(GtkMenuItem *menuitem, gpointer data); static void button_press_event(GtkWidget *widget, GdkEventButton *ev); static void create_plugin(GtkWidget *vbox, gint first_create); static void draw_flag(); static void cycle_layout(); static gchar *get_property (Display *disp, Window win, Atom xa_prop_type, gchar *prop_name, unsigned long *size); /* }}} */ /* static data {{{ */ static GkrellmPanel *panel; static GkrellmMonitor *monitor; static GkrellmTicks *pGK; static int force_redraw = 0; static int update_locked = 0; static struct { const char *country_code; char **flag_pointer; } global_flag_map[] = { { "ar", flag_xpm_ar }, { "be", flag_xpm_be }, { "br", flag_xpm_br }, { "cz", flag_xpm_cz }, { "cz_prog", flag_xpm_cz_prog }, { "de", flag_xpm_de }, { "dk", flag_xpm_dk }, { "ee", flag_xpm_ee }, { "el", flag_xpm_el }, { "es", flag_xpm_es }, { "fi", flag_xpm_fi }, { "fr", flag_xpm_fr }, { "gb", flag_xpm_gb }, { "hr", flag_xpm_hr }, { "hu", flag_xpm_hu }, { "it", flag_xpm_it }, { "il", flag_xpm_il }, { "lt", flag_xpm_lt }, { "lv", flag_xpm_lv }, { "nl", flag_xpm_nl }, { "no", flag_xpm_no }, { "pl", flag_xpm_pl }, { "ru", flag_xpm_ru }, { "se", flag_xpm_se }, { "sk", flag_xpm_sk }, { "us", flag_xpm_us }, { NULL, NULL } }; static struct { const char *country_name; char **flag_pointer; } global_names_map[] = { { "Arabic", flag_xpm_ar }, { "Belgian", flag_xpm_be }, { "Brazilian", flag_xpm_br }, { "Czech Prog", flag_xpm_cz_prog }, { "Czech", flag_xpm_cz }, { "Croatian", flag_xpm_hr }, { "Danish", flag_xpm_dk }, { "Estonian", flag_xpm_ee }, { "Finnish", flag_xpm_fi }, { "French", flag_xpm_fr }, { "German", flag_xpm_de }, { "Great Britain", flag_xpm_gb }, { "Hungarian", flag_xpm_hu }, { "Italian", flag_xpm_it }, { "Israelian", flag_xpm_il }, { "ISO8859-7", flag_xpm_el }, /* greek */ { "Latvian", flag_xpm_lv }, { "Lithuanian", flag_xpm_lt }, { "Nederland", flag_xpm_nl }, { "Norwegian", flag_xpm_no }, { "Polish", flag_xpm_pl }, { "Russian", flag_xpm_ru }, { "Spanish", flag_xpm_es }, { "Swedish", flag_xpm_se }, { "Slovak", flag_xpm_sk }, { "US/ASCII", flag_xpm_us }, { "en_US", flag_xpm_us }, { NULL, NULL } }; /* }}} */ static GkrellmMonitor plugin_mon = { /* {{{ */ PLUGIN_NAME, /* Name, for config tab. */ 0, /* Id, 0 if a plugin */ create_plugin, /* The create_plugin() function */ update_plugin, /* The update_plugin() function */ NULL, /* The create_plugin_tab() config function */ NULL, /* The apply_plugin_config() function */ NULL, /* The save_plugin_config() function */ NULL, /* The load_plugin_config() function */ CONFIG_KEYWORD, /* config keyword */ NULL, /* Undefined 2 */ NULL, /* Undefined 1 */ NULL, /* Undefined 0 */ PLUGIN_PLACEMENT, /* Insert plugin before this monitor. */ NULL, /* Handle if a plugin, filled in by GKrellM */ NULL /* path if a plugin, filled in by GKrellM */ }; /* }}} */ GkrellmMonitor *gkrellm_init_plugin(void) { /* {{{ */ monitor = &plugin_mon; pGK = gkrellm_ticks(); return monitor; } /* }}} */ /* main() function for testing {{{ int main(int argc, char **argv) { Display *disp; int num_groups; xkbGroup groups[XKB_MAX_GROUPS]; int active_group; if (! (disp = XOpenDisplay(NULL))) { xkb_error("XOpenDisplay()"); return EXIT_FAILURE; } if (! xkb_init(disp)) return EXIT_FAILURE; while (1) { if (! xkb_status(disp, &num_groups, &active_group, groups)) return EXIT_FAILURE; printf("num_groups: %d\n", num_groups); printf("active_group: %d\n", active_group); printf("active group name: %s\n", groups[active_group].name); printf("active group flag: %s\n", groups[active_group].flag_xpm[0]); sleep(2); } xkb_free_groups(groups); XCloseDisplay(disp); return EXIT_SUCCESS; } }}} */ static void update_plugin() { /* {{{ */ if (update_locked) return; update_locked = 1; if (FULL_UPDATES || pGK->second_tick) { draw_flag(0); } update_locked = 0; } /* }}} */ static gint panel_expose_event(GtkWidget *widget, /* {{{ */ GdkEventExpose *ev, gpointer gw) { force_redraw = 1; update_plugin(); return FALSE; } /* }}} */ static void button_press_event(GtkWidget *widget, /* {{{ */ GdkEventButton *ev) { GtkWidget *menu = NULL; GtkWidget *item = NULL; int num_groups = 0; xkbGroup groups[XKB_MAX_GROUPS]; int active_group; int i; if (! widget) return; if (ev->button == 1) { memset(groups, 0, sizeof(groups)); if (! xkb_status(GDK_DISPLAY(), &num_groups, &active_group, groups)) goto cleanup; menu = gtk_menu_new(); /* Create the menu items */ for (i = 0; i < num_groups; i++) { GdkPixmap *img_gdk; GtkWidget *img; if (! (img_gdk = gdk_pixmap_colormap_create_from_xpm_d(NULL, gdk_colormap_get_system (), NULL, NULL, groups[i].flag_xpm))) continue; if (! (img = gtk_image_new_from_pixmap(img_gdk, NULL))) continue; item = gtk_image_menu_item_new_with_label(groups[i].name ? groups[i].name : "N/A"); gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item), img); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(keyboard_selection), GINT_TO_POINTER(i)); gtk_widget_show(item); gtk_widget_show(img); } gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, ev->button, ev->time); cleanup: xkb_free_groups(num_groups, groups); } else if (ev->button == 3) { cycle_layout(); } } /* }}} */ static void keyboard_selection(GtkMenuItem *menuitem, /* {{{ */ gpointer data) { /* fprintf(stderr, "selected: %d\n", GPOINTER_TO_INT(data)); */ XkbLockGroup(GDK_DISPLAY(), XkbUseCoreKbd, GPOINTER_TO_INT(data)); XSync(GDK_DISPLAY(), False); update_plugin(); } /* }}} */ static void create_plugin(GtkWidget *vbox, gint first_create) { /* {{{ */ if (first_create) { panel = gkrellm_panel_new0(); xkb_init(GDK_DISPLAY()); } gkrellm_panel_configure(panel, NULL, NULL); gkrellm_panel_configure_set_height(panel, PANEL_HEIGHT); gkrellm_panel_create(vbox, monitor, panel); if (first_create) { g_signal_connect(G_OBJECT(panel->drawing_area), "expose_event", G_CALLBACK(panel_expose_event), NULL); g_signal_connect(G_OBJECT(panel->drawing_area), "button_press_event", G_CALLBACK(button_press_event), NULL); } draw_flag(1); } /* }}} */ static void draw_flag(int redraw) { /* {{{ */ static char **current_flag = NULL; int num_groups = 0; xkbGroup groups[XKB_MAX_GROUPS]; int active_group; int flag_width, flag_height; int loc_x, loc_y; static GdkPixmap *flag_pix = NULL; static GdkPixmap *caps_pix = NULL; static GdkPixmap *num_pix = NULL; static GdkPixmap *bg_scaled = NULL; static GkrellmDecal *decal_flag = NULL; static GkrellmDecal *decal_caps = NULL; static GkrellmDecal *decal_num = NULL; static GkrellmDecal *decal_bg = NULL; GkrellmPiximage *bg = NULL; static GtkTooltips *tooltip = NULL; unsigned int ind_status; static int ind_caps_prev, ind_num_prev; int ind_caps, ind_num; memset(groups, 0, sizeof(groups)); if (! xkb_status(GDK_DISPLAY(), &num_groups, &active_group, groups)) goto cleanup; if (active_group < 0) goto cleanup; if (XkbGetIndicatorState(GDK_DISPLAY(), XkbUseCoreKbd, &ind_status) == Success) { ind_caps = ind_status & 1<<0; ind_num = ind_status & 1<<1; /* fprintf(stderr, "caps: %d num: %d scroll: %d\n", ind_status & 1<<0, ind_status & 1<<1, ind_status & 1<<2); */ } else { goto cleanup; } if (! (redraw || force_redraw || current_flag == NULL || current_flag != groups[active_group].flag_xpm || ind_caps != ind_caps_prev || ind_num != ind_num_prev)) goto cleanup; /* fprintf(stderr, "Redrawing...\n"); */ ind_caps_prev = ind_caps; ind_num_prev = ind_num; current_flag = groups[active_group].flag_xpm; if (!redraw && decal_bg) { gkrellm_destroy_decal(decal_bg); decal_bg = NULL; } if (!redraw && decal_flag) { gkrellm_destroy_decal(decal_flag); decal_flag = NULL; } if (!redraw && decal_caps) { gkrellm_destroy_decal(decal_caps); decal_caps = NULL; } if (!redraw && decal_num) { gkrellm_destroy_decal(decal_num); decal_num = NULL; } if (flag_pix) { gkrellm_free_pixmap(&flag_pix); flag_pix = NULL; } if (flag_pix) { gkrellm_free_pixmap(&flag_pix); flag_pix = NULL; } if (caps_pix) { gkrellm_free_pixmap(&caps_pix); caps_pix = NULL; } if (num_pix) { gkrellm_free_pixmap(&num_pix); num_pix = NULL; } if (bg_scaled) { gkrellm_free_pixmap(&bg_scaled); bg_scaled = NULL; } if ((bg = gkrellm_bg_meter_piximage(DEFAULT_STYLE_ID))) { gkrellm_scale_piximage_to_pixmap(bg, &bg_scaled, NULL, gkrellm_chart_width(), PANEL_HEIGHT); } if ((flag_pix = gdk_pixmap_colormap_create_from_xpm_d(NULL, gtk_widget_get_default_colormap(), NULL, NULL, current_flag)) && (caps_pix = gdk_pixmap_colormap_create_from_xpm_d(NULL, gtk_widget_get_default_colormap(), NULL, NULL, ind_caps ? caps_on_xpm : caps_off_xpm)) && (num_pix = gdk_pixmap_colormap_create_from_xpm_d(NULL, gtk_widget_get_default_colormap(), NULL, NULL, ind_num ? num_on_xpm : num_off_xpm))) { gdk_drawable_get_size(flag_pix, &flag_width, &flag_height); loc_x = (gkrellm_chart_width() - flag_width) / 2; loc_y = 2; if (bg_scaled) { decal_bg = gkrellm_create_decal_pixmap(panel, bg_scaled, NULL, 0, NULL, 0, 0); gkrellm_draw_decal_pixmap(panel, decal_bg, 0); } decal_flag = gkrellm_create_decal_pixmap(panel, flag_pix, NULL, 0, NULL, loc_x, loc_y); decal_caps = gkrellm_create_decal_pixmap(panel, caps_pix, NULL, 0, NULL, 0, loc_y); decal_num = gkrellm_create_decal_pixmap(panel, num_pix, NULL, 0, NULL, gkrellm_chart_width() - 14, loc_y); gkrellm_draw_decal_pixmap(panel, decal_flag, 0); gkrellm_draw_decal_pixmap(panel, decal_caps, 0); gkrellm_draw_decal_pixmap(panel, decal_num, 0); gkrellm_draw_panel_layers(panel); /* printf("active group name: %s\n", groups[active_group].name); */ } if (! tooltip) tooltip = gtk_tooltips_new(); if (groups[active_group].name) { gtk_tooltips_set_tip(tooltip, panel->drawing_area, groups[active_group].name , NULL); } if (redraw) current_flag = NULL; if (force_redraw) force_redraw = 0; cleanup: xkb_free_groups(num_groups, groups); } /* }}} */ static Bool xkb_init(Display *disp) { /* {{{ */ if (XkbQueryExtension(disp, NULL, NULL, NULL, NULL, NULL)) { return True; } else { xkb_error("Cannot initialize XKB extension."); return False; } } /* }}} */ static Bool xkb_status(Display *disp, int *num_groups, /* {{{ */ int *active_group, xkbGroup *groups) { Bool status = False; int i; XkbDescPtr kb; gchar **xkb_rules = NULL; if (! (kb = XkbAllocKeyboard())) { xkb_error("XkbAllocKeyboard()"); goto cleanup; } if (! xkb_get_groups_num(disp, kb, num_groups)) goto cleanup; if (! xkb_get_groups_names(disp, kb, *num_groups, groups)) goto cleanup; if (! xkb_get_active_group(disp, active_group)) goto cleanup; xkb_rules = parse_xkb_rules_names(); for (i = 0; i < *num_groups; i++) { if (! (xkb_rules && xkb_find_flag_from_rules(xkb_rules, i, &groups[i]))) { xkb_find_flag_from_name(&groups[i]); } } if (xkb_rules) g_strfreev(xkb_rules); status = True; cleanup: if (kb) XkbFreeKeyboard(kb, XkbAllComponentsMask, True); return status; } /* }}} */ static Bool xkb_get_groups_num(Display *disp, XkbDescPtr kb, /* {{{ */ int *num_groups) { if (XkbGetControls(disp, XKB_CTRLS_MASK, kb) == Success) { *num_groups = kb->ctrls->num_groups; XkbFreeControls(kb, XKB_CTRLS_MASK, True); return True; } else { xkb_error("XkbGetControls()"); return False; } } /* }}} */ static Bool xkb_get_groups_names(Display *disp, XkbDescPtr kb, /* {{{ */ int num_groups, xkbGroup *groups) { Bool status = False; char *name = NULL; int i; if (XkbGetNames(disp, XkbGroupNamesMask, kb) != Success) { xkb_error("XkbGetNames()"); return False; } for (i = 0; i < num_groups; i++) { if (kb->names->groups[i]) { if ((name = XGetAtomName(disp, kb->names->groups[i]))) { groups[i].name = name; } else { xkb_error("XGetAtomName()"); groups[i].name = NULL; } } else { /* fprintf(stderr, "gkrellm-xkb: Keyboard group description is incomplete.\n" "*** gkrellm-xkb does NOT work in GNOME or KDE. ***\n"); */ groups[i].name = NULL; } } status = True; XkbFreeNames(kb, XkbGroupNamesMask, True); return status; } /* }}} */ static Bool xkb_get_active_group(Display *disp, int *active_group) { /* {{{ */ XkbStateRec state; if (XkbGetState(disp, XkbUseCoreKbd, &state) == Success) { *active_group = state.group; return True; } else { xkb_error("XkbGetState()"); return False; } } /* }}} */ static Bool xkb_find_flag_from_rules(gchar **xkb_rules, /* {{{ */ int group_num, xkbGroup *group) { gint pos = 0; while (xkb_rules[pos]) { if (pos == group_num) { int i; i = 0; while (global_flag_map[i].country_code) { if (g_ascii_strcasecmp(global_flag_map[i].country_code, xkb_rules[pos]) == 0) { group->flag_xpm = global_flag_map[i].flag_pointer; /* fprintf(stderr, "xkb_find_flag_from_rules: found flag: %s\n", xkb_rules[pos]); */ return True; } i++; } } pos++; } return False; } /* }}} */ static gchar **parse_xkb_rules_names() { /* {{{ */ gchar *prop_rules = NULL; gchar *country_codes = NULL; unsigned long prop_rules_len; int i, pos; gchar **country_codes_array = NULL; /* get the _XKB_RULES_NAMES from the root window */ if (! (prop_rules = get_property(GDK_DISPLAY(), DefaultRootWindow(GDK_DISPLAY()), XA_STRING, "_XKB_RULES_NAMES", &prop_rules_len))) { goto cleanup; } /* find the country codes separated with a comma */ pos = 1; for (i = 0; i < prop_rules_len; i++) { if (prop_rules[i] == '\0' && ++pos == 3) { country_codes = prop_rules + i + 1; break; } } if (! country_codes) goto cleanup; /* fprintf(stderr, "country_codes: %s\n", country_codes); */ /* parse country_codes string into array */ country_codes_array = g_strsplit(country_codes, ",", 0); cleanup: if (prop_rules) g_free(prop_rules); return country_codes_array; } /* }}} */ static void xkb_find_flag_from_name(xkbGroup *group) { /* {{{ */ int i; group->flag_xpm = NULL; /* fprintf(stderr, "xkb_find_flag_from_name\n"); */ if (! group->name) { group->flag_xpm = flag_xpm_unknown; return; } i = 0; while (global_names_map[i].country_name) { if (STARTS_WITH(group->name, global_names_map[i].country_name)) { group->flag_xpm = global_names_map[i].flag_pointer; return; } i++; } if (group->flag_xpm == NULL) group->flag_xpm = flag_xpm_unknown; return; } /* }}} */ static void xkb_error(char *msg) { /* {{{ */ fprintf(stderr, "gkrellm-xkb error: %s\n", msg); } /* }}} */ static void xkb_free_groups(int num_groups, xkbGroup *groups) { /* {{{ */ int i; for (i = 0; i < num_groups; i++) { if (groups[i].name) XFree(groups[i].name); } } /* }}} */ static void cycle_layout() { /* {{{ */ int active_group, next_group, num_groups = 0; XkbDescPtr kb; if (! (kb = XkbAllocKeyboard())) { xkb_error("XkbAllocKeyboard()"); goto cleanup; } if (!xkb_get_groups_num(GDK_DISPLAY(), kb, &num_groups)) goto cleanup; if (!xkb_get_active_group(GDK_DISPLAY(), &active_group)) goto cleanup; next_group = active_group + 1; if (next_group == num_groups) next_group = 0; keyboard_selection(NULL/*menuitem*/, GINT_TO_POINTER(next_group)); cleanup: if (kb) XkbFreeKeyboard(kb, XkbAllComponentsMask, True); } /* }}} */ static gchar *get_property (Display *disp, Window win, /*{{{*/ Atom xa_prop_type, gchar *prop_name, unsigned long *size) { Atom xa_prop_name; Atom xa_ret_type; int ret_format; unsigned long ret_nitems; unsigned long ret_bytes_after; unsigned long tmp_size; unsigned char *ret_prop; gchar *ret; xa_prop_name = XInternAtom(disp, prop_name, False); if (XGetWindowProperty(disp, win, xa_prop_name, 0, MAX_PROPERTY_VALUE_LEN / 4, False, xa_prop_type, &xa_ret_type, &ret_format, &ret_nitems, &ret_bytes_after, &ret_prop) != Success) { /* fprintf(stderr, "Cannot get %s property.\n", prop_name); */ return NULL; } if (xa_ret_type != xa_prop_type) { /* fprintf(stderr, "Invalid type of %s property.\n", prop_name); */ XFree(ret_prop); return NULL; } /* null terminate the result to make string handling easier */ tmp_size = (ret_format / 8) * ret_nitems; ret = g_malloc(tmp_size + 1); memcpy(ret, ret_prop, tmp_size); ret[tmp_size] = '\0'; if (size) { *size = tmp_size; } XFree(ret_prop); return ret; }/*}}}*/ gkrellm-xkb-1.05/Makefile0100644000077500007750000000122307776202574014067 0ustar triptrip PREFIX ?= /usr/local GTK_CONFIG = pkg-config gtk+-2.0 PLUGIN_DIR ?= $(PREFIX)/lib/gkrellm2/plugins GKRELLM_INCLUDE = -I$(PREFIX)/include GTK_CFLAGS = `$(GTK_CONFIG) --cflags` GTK_LIB = `$(GTK_CONFIG) --libs` FLAGS = -Wall -fPIC $(GTK_CFLAGS) $(GKRELLM_INCLUDE) CFLAGS ?= -O -g CFLAGS += $(FLAGS) LIBS = $(GTK_LIB) LFLAGS = -shared CC ?= gcc INSTALL = install -c INSTALL_PROGRAM = $(INSTALL) -s PIX = caps_off.xpm caps_on.xpm num_off.xpm num_on.xpm xkb.so: main.o $(CC) $(FLAGS) main.o -o xkb.so $(LIBS) $(LFLAGS) clean: rm -f *.o core *.so* *.bak *~ install: $(INSTALL_PROGRAM) xkb.so $(PLUGIN_DIR) main.o: main.c $(PIX) $(CC) $(FLAGS) -c main.c gkrellm-xkb-1.05/makedist.sh0100750000077500007750000000040407677321565014564 0ustar triptrip#!/bin/sh # This script creates a distribution tarball of the plugin. make clean VERSION=`cat VERSION` FILE="gkrellm-xkb-$VERSION.tar.gz" cd .. cp -pr gkrellm-xkb gkrellm-xkb-$VERSION tar -c gkrellm-xkb-$VERSION | gzip -c > $FILE rm -rf gkrellm-xkb-$VERSION gkrellm-xkb-1.05/VERSION0100664000077500007750000000000510015665274013464 0ustar triptrip1.05 gkrellm-xkb-1.05/flags/0040755000077500007750000000000010015702741013505 5ustar triptripgkrellm-xkb-1.05/flags/el.xpm0100664000077500007750000000077007677327563014667 0ustar triptrip/* XPM */ static char * flag_xpm_el[] = { /* columns rows colors chars-per-pixel */ "21 14 3 1", " c None", ". c #4949FF", "+ c #FFFFFF", /* pixels */ "...++................", "...++................", "...++...+++++++++++++", "++++++++.............", "++++++++.............", "...++...+++++++++++++", "...++................", "...++................", "+++++++++++++++++++++", ".....................", ".....................", "+++++++++++++++++++++", ".....................", "....................." }; gkrellm-xkb-1.05/flags/cz.xpm0100644000077500007750000000101507675506045014662 0ustar triptrip/* XPM */ static char *flag_xpm_cz[] = { /* columns rows colors chars-per-pixel */ "21 14 5 1", " c navy", ". c red", "X c #c0c0c0", "o c white", "O c black", /* pixels */ " oooooooooooooooooooO", " oooooooooooooooooO", " ooooooooooooooooO", " ooooooooooooooO", " oooooooooooooO", " ooooooooooooO", " ............O", " .............O", " ..............O", " ................O", " .................O", " ...................O", "OOOOOOOOOOOOOOOOOOOOO", "OOOOOOOOOOOOOOOOOOOOO" }; gkrellm-xkb-1.05/flags/unknown.xpm0100664000077500007750000000126407675640526015760 0ustar triptrip/* XPM */ static char *flag_xpm_unknown[] = { /* columns rows colors chars-per-pixel */ "21 14 15 1", " c #010101", ". c #0c0b0b", "X c #131111", "o c #1e1b1b", "O c #363131", "+ c #3b3535", "@ c #494242", "# c #544c4c", "$ c #645a5a", "% c #746969", "& c #786d6d", "* c #827575", "= c #897c7c", "- c #8f8181", "; c #938585", /* pixels */ ";;;;;;;;;;;;;;;;;;;;;", ";;;;;;;;;;;;;;;;;;;;;", ";;;;;;;#O. X@;;;;;;;;", ";;;;;;; O*=@ +;;;;;;;", ";;;;;;;;;;;; ;;;;;;;", ";;;;;;;;;;;& .;;;;;;;", ";;;;;;;;;;=oX&;;;;;;;", ";;;;;;;;;$X %;;;;;;;;", ";;;;;;;;; *;;;;;;;;;", ";;;;;;;;; ;;;;;;;;;;", ";;;;;;;;;;;;;;;;;;;;;", ";;;;;;;;; ;;;;;;;;;;", ";;;;;;;;; ;;;;;;;;;;", ";;;;;;;;;;;;;;;;;;;;;" }; gkrellm-xkb-1.05/flags/cz_prog.xpm0100644000077500007750000000102007675506045015705 0ustar triptrip/* XPM */ static char *flag_xpm_cz_prog[] = { /* columns rows colors chars-per-pixel */ "21 14 5 1", " c black", ". c navy", "X c red", "o c white", "O c black", /* pixels */ ".oooooooooooooooooooO", "...oooooooooooooooooO", "....oooooo ooO", "......oooo ooO", ".......ooo ooO", "........ooooooooooooO", "........XXXXXXXXXXXXO", ".......XXXXXXXXXXXXXO", "......XXXXXXXXXXXXXXO", "....XXXXXXXXXXXXXXXXO", "...XXXXXXXXXXXXXXXXXO", ".XXXXXXXXXXXXXXXXXXXO", "OOOOOOOOOOOOOOOOOOOOO", "OOOOOOOOOOOOOOOOOOOOO" }; gkrellm-xkb-1.05/flags/il.xpm0100600000077500007750000000314207712267266014646 0ustar triptrip/* XPM */ static char * flag_xpm_il[] = { "21 14 82 1", " c None", ". c #FBFBFE", "+ c #FCFCFE", "@ c #F3F3FE", "# c #E5E5FE", "$ c #E2E2FE", "% c #F8F8FE", "& c #FDFDFE", "* c #E8E8FE", "= c #EFEFFE", "- c #FEFEFE", "; c #F2F2FE", "> c #E6E6FE", ", c #FAFAFE", "' c #F9F9FE", ") c #E9E9FE", "! c #DEDEFE", "~ c #1A1AFE", "{ c #1B1BFF", "] c #1313BB", "^ c #0D0DFA", "/ c #0D0DFF", "( c #0B0BBC", "_ c #DFDFFE", ": c #DADAFB", "< c #D3D3F5", "[ c #D2D2F4", "} c #DCDCFC", "| c #D9D9F7", "1 c #B8B8FA", "2 c #B9B9FA", "3 c #D4D4F3", "4 c #D5D5F6", "5 c #DDDDFD", "6 c #DCDCF9", "7 c #9C9CE4", "8 c #FEFEFF", "9 c #E9E9F7", "0 c #7D7DF9", "a c #8686FF", "b c #F5F5FE", "c c #FFFFFF", "d c #BDBDBE", "e c #B7B7FE", "f c #7878FE", "g c #5353FF", "h c #6A6AE8", "i c #5151FF", "j c #8181FC", "k c #DDDDF5", "l c #FFFFFE", "m c #6D6DFE", "n c #8C8CF9", "o c #EAEAFB", "p c #8989FE", "q c #8585FE", "r c #5252FF", "s c #7B7BFC", "t c #C6C6F7", "u c #D7D7F9", "v c #7171FB", "w c #8686FE", "x c #E3E3FE", "y c #BDBDFE", "z c #DFDFFF", "A c #1B1BFE", "B c #1515FC", "C c #0C0CFA", "D c #0E0EBA", "E c #BFBFFF", "F c #9C9CC6", "G c #626269", "H c #63636B", "I c #6A6A77", "J c #6A6A76", "K c #62626A", "L c #696975", "M c #63636C", "N c #676772", "O c #686873", "P c #6B6B77", "Q c #65656F", ".+@#+.$%&*=-;>&,$'&)!", "~~~~~~~~~~~~~~~~~~~{]", "^^^^^^^^^^^^^^^^^^^/(", "!_: c #666666", ", c #339933", "' c #339900", ") c #336600", "! c #006600", "~ c #008800", "{ c #007700", "] c #EEEEEE", "^ c #DDDDDD", "/ c #BBBBBB", "( c #AAAAAA", "_ c #888888", "~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~#~~~~~~~~~~", "~~~~~~~~#-;=#~~~~~~~~", "~~~~~~~,-~*~='~~~~~~~", "~~~~~~~#;$,,;#~~~~~~~", "~~~~~~~@-,=*'/~~~~~~~", "~~~~~~~(,*##'#~~~~~~~", "~~~~~~~+;]- ;+~~~~~~~", "~~~~~~~,,- ,-'~~~~~~~", "~~~~~~~~&.#+=~~~~~~~~", "~~~~~~~~~/]/~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~"}; gkrellm-xkb-1.05/flags/be.xpm0100644000077500007750000000100207675506045014630 0ustar triptrip/* XPM */ static char *flag_xpm_be[] = { /* columns rows colors chars-per-pixel */ "21 14 4 1", " c black", ". c red", "X c yellow", "o c #c0c0c0", /* pixels */ " XXXXXX......ooo", " XXXXXX......ooo", " XXXXXX......ooo", " XXXXXX......ooo", " XXXXXX......ooo", " XXXXXX......ooo", " XXXXXX......ooo", " XXXXXX......ooo", " XXXXXX......ooo", " XXXXXX......ooo", " XXXXXX......ooo", " XXXXXX......ooo", " XXXXXX......ooo", "ooooooooooooooooooooo" }; gkrellm-xkb-1.05/flags/br.xpm0100644000077500007750000000102007675506045014645 0ustar triptrip/* XPM */ static char *flag_xpm_br[] = { /* columns rows colors chars-per-pixel */ "21 14 5 1", " c blue", ". c #008000", "X c yellow", "o c white", "O c black", /* pixels */ ".....................", ".....................", ".........XXX.........", ".......XX XX.......", ".....XXX XXX.....", "...XXXXOOOOO XXXX...", "..XXXXX OOXXXXX..", "...XXXX O O XXXX...", ".....XXX XXX.....", ".......XX XX.......", ".........XXX.........", ".....................", ".....................", "OOOOOOOOOOOOOOOOOOOOO" }; gkrellm-xkb-1.05/flags/de.xpm0100644000077500007750000000101707675506045014640 0ustar triptrip/* XPM */ static char *flag_xpm_de[] = { /* columns rows colors chars-per-pixel */ "21 14 5 1", " c black", ". c red", "X c yellow", "o c #c0c0c0", "O c black", /* pixels */ " O", " O", " O", " O", "....................O", "....................O", "....................O", "....................O", "XXXXXXXXXXXXXXXXXXXXO", "XXXXXXXXXXXXXXXXXXXXO", "XXXXXXXXXXXXXXXXXXXXO", "XXXXXXXXXXXXXXXXXXXXO", "OOOOOOOOOOOOOOOOOOOOO", "OOOOOOOOOOOOOOOOOOOOO" }; gkrellm-xkb-1.05/flags/dk.xpm0100644000077500007750000000100107675506045014637 0ustar triptrip/* XPM */ static char *flag_xpm_dk[] = { /* columns rows colors chars-per-pixel */ "21 14 4 1", " c red", ". c #c0c0c0", "X c white", "o c black", /* pixels */ " XXX o", " XXX o", " XXX o", " XXX o", " XXX o", "XXXXXXXXXXXXXXXXXXXXo", "XXXXXXXXXXXXXXXXXXXXo", "XXXXXXXXXXXXXXXXXXXXo", " XXX o", " XXX o", " XXX o", " XXX o", " XXX o", "ooooooooooooooooooooo" }; gkrellm-xkb-1.05/flags/es.xpm0100644000077500007750000000100207675506045014651 0ustar triptrip/* XPM */ static char *flag_xpm_es[] = { /* columns rows colors chars-per-pixel */ "21 14 4 1", " c red", ". c yellow", "X c #c0c0c0", "o c black", /* pixels */ " o", " o", " o", "....................o", "....................o", "....................o", "....................o", "....................o", "....................o", "....................o", " o", " o", " o", "ooooooooooooooooooooo" }; gkrellm-xkb-1.05/flags/fi.xpm0100644000077500007750000000102107675506045014641 0ustar triptrip/* XPM */ static char *flag_xpm_fi[] = { /* columns rows colors chars-per-pixel */ "21 14 5 1", " c navy", ". c #808000", "X c #c0c0c0", "o c white", "O c black", /* pixels */ "oooooo oooooooooooO", "oooooo oooooooooooO", "oooooo oooooooooooO", "oooooo oooooooooooO", "oooooo oooooooooooO", " . . O", " . O", " . . O", "oooooo oooooooooooO", "oooooo oooooooooooO", "oooooo oooooooooooO", "oooooo oooooooooooO", "oooooo oooooooooooO", "OOOOOOOOOOOOOOOOOOOOO" }; gkrellm-xkb-1.05/flags/fr.xpm0100644000077500007750000000101507675506045014655 0ustar triptrip/* XPM */ static char *flag_xpm_fr[] = { /* columns rows colors chars-per-pixel */ "21 14 5 1", " c navy", ". c red", "X c #c0c0c0", "o c white", "O c black", /* pixels */ " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", "OOOOOOOOOOOOOOOOOOOOO" }; gkrellm-xkb-1.05/flags/gb.xpm0100644000077500007750000000101507675506045014636 0ustar triptrip/* XPM */ static char *flag_xpm_gb[] = { /* columns rows colors chars-per-pixel */ "21 14 5 1", " c navy", ". c red", "X c #c0c0c0", "o c white", "O c black", /* pixels */ "o o...o ..OO", ".oo o...o ..ooOO", " ..oo o...o ..oo OO", " ..o o...o.oo OO", "oooooooo...ooooooooOO", "...................OO", "...................OO", "...................OO", "oooooooo...ooooooooOO", " oo.o...o o.. OO", " oo.. o...o oo.. OO", "oo.. o...o oo.OO", ".. o...o oOO", "OOOOOOOOOOOOOOOOOOOOO" }; gkrellm-xkb-1.05/flags/hr.xpm0100644000077500007750000000101507675506045014657 0ustar triptrip/* XPM */ static char *flag_xpm_hr[] = { /* columns rows colors chars-per-pixel */ "21 14 5 1", " c navy", ". c red", "X c #c0c0c0", "o c white", "O c black", /* pixels */ "....................O", "....................O", "....................O", "........ .......O", "ooooooooo.o.ooooooooO", "oooooooo.o.o.oooooooO", "ooooooooo.o.ooooooooO", "oooooooo.o.o.oooooooO", " .o. O", " O", " O", " O", "OOOOOOOOOOOOOOOOOOOOO", "OOOOOOOOOOOOOOOOOOOOO" }; gkrellm-xkb-1.05/flags/it.xpm0100644000077500007750000000102007675506045014656 0ustar triptrip/* XPM */ static char *flag_xpm_it[] = { /* columns rows colors chars-per-pixel */ "21 14 5 1", " c #008000", ". c red", "X c #c0c0c0", "o c white", "O c black", /* pixels */ " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", " oooooo......OOO", "OOOOOOOOOOOOOOOOOOOOO" }; gkrellm-xkb-1.05/flags/nl.xpm0100644000077500007750000000102207675506045014655 0ustar triptrip/* XPM */ static char *flag_xpm_nl[] = { /* columns rows colors chars-per-pixel */ "21 14 5 1", " c black", ". c #051e8d", "X c #e4080c", "o c white", "O c black", /* pixels */ "XXXXXXXXXXXXXXXXXXXOO", "XXXXXXXXXXXXXXXXXXXOO", "XXXXXXXXXXXXXXXXXXXOO", "XXXXXXXXXXXXXXXXXXXOO", "oooooooooooooooooooOO", "oooooooooooooooooooOO", "oooooooooooooooooooOO", "oooooooooooooooooooOO", "...................OO", "...................OO", "...................OO", "...................OO", "OOOOOOOOOOOOOOOOOOOOO", "OOOOOOOOOOOOOOOOOOOOO" }; gkrellm-xkb-1.05/flags/no.xpm0100644000077500007750000000102107675506045014657 0ustar triptrip/* XPM */ static char *flag_xpm_no[] = { /* columns rows colors chars-per-pixel */ "21 14 5 1", " c navy", ". c #c00000", "X c #c3c3c3", "o c white", "O c black", /* pixels */ ".....o o...........O", ".....o o...........O", ".....o o...........O", ".....o o...........O", ".....o o...........O", "oooooo ooooooooooooO", " O", " O", "oooooo ooooooooooooO", ".....o o...........O", ".....o o...........O", ".....o o...........O", ".....o o...........O", ".....o o...........O" }; gkrellm-xkb-1.05/flags/pl.xpm0100644000077500007750000000075007675506045014666 0ustar triptrip/* XPM */ static char *flag_xpm_pl[] = { /* columns rows colors chars-per-pixel */ "21 13 4 1", " c red", ". c #c0c0c0", "X c white", "o c black", /* pixels */ "XXXXXXXXXXXXXXXXXXXXo", "XXXXXXXXXXXXXXXXXXXXo", "XXXXXXXXXXXXXXXXXXXXo", "XXXXXXXXXXXXXXXXXXXXo", "XXXXXXXXXXXXXXXXXXXXo", "XXXXXXXXXXXXXXXXXXXXo", " o", " o", " o", " o", " o", " o", "ooooooooooooooooooooo" }; gkrellm-xkb-1.05/flags/ru.xpm0100644000077500007750000000102307675506045014673 0ustar triptrip/* XPM */ static char *flag_xpm_ru[] = { /* columns rows colors chars-per-pixel */ "21 14 5 1", " c navy", ". c red", "X c #c0c0c0c0c0c0", "o c white", "O c black", /* pixels */ "ooooooooooooooooooooO", "ooooooooooooooooooooO", "ooooooooooooooooooooO", "ooooooooooooooooooooO", " O", " O", " O", " O", " O", "....................O", "....................O", "....................O", "....................O", "OOOOOOOOOOOOOOOOOOOOO" }; gkrellm-xkb-1.05/flags/se.xpm0100644000077500007750000000100607675506045014655 0ustar triptrip/* XPM */ static char *flag_xpm_se[] = { /* columns rows colors chars-per-pixel */ "21 14 4 1", " c #0099b6", ". c yellow", "X c #c0c0c0", "o c black", /* pixels */ " ... oo", " ... oo", " ... oo", " ... oo", " ... oo", "...................oo", "...................oo", "...................oo", " ... oo", " ... oo", " ... oo", " ... oo", " ... oo", "ooooooooooooooooooooo" }; gkrellm-xkb-1.05/flags/sk.xpm0100644000077500007750000000101507675506045014663 0ustar triptrip/* XPM */ static char *flag_xpm_sk[] = { /* columns rows colors chars-per-pixel */ "21 14 5 1", " c navy", ". c red", "X c #c0c0c0", "o c white", "O c black", /* pixels */ "ooooooooooooooooooooO", "ooooooooooooooooooooO", "o.......ooooooooooooO", "o...o...ooooooooooooO", " ..ooo.. O", " ...o... O", " .ooooo. O", " .. o .. O", ".. .............O", "... ..............O", "....................O", "....................O", "OOOOOOOOOOOOOOOOOOOOO", "OOOOOOOOOOOOOOOOOOOOO" }; gkrellm-xkb-1.05/flags/us.xpm0100644000077500007750000000076107675506045014704 0ustar triptrip/* XPM */ static char *flag_xpm_us[] = { /* columns rows colors chars-per-pixel */ "21 14 3 1", " c navy", ". c red", "X c white", /* pixels */ " ............", " X X X X XXXXXXXXXXXX", " X X X ............", " X X X X XXXXXXXXXXXX", " X X X ............", " X X X X XXXXXXXXXXXX", " ............", "XXXXXXXXXXXXXXXXXXXXX", ".....................", "XXXXXXXXXXXXXXXXXXXXX", ".....................", "XXXXXXXXXXXXXXXXXXXXX", ".....................", "XXXXXXXXXXXXXXXXXXXXX" }; gkrellm-xkb-1.05/LICENSE0100664000077500007750000004310007341332001013407 0ustar triptrip GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. gkrellm-xkb-1.05/TODO0100664000077500007750000000005207675673065013125 0ustar triptrip * fix BadAtom bug with "latin" keyboard gkrellm-xkb-1.05/gkrellm-xkb.spec0100600000077500007750000000213010015665312015467 0ustar triptrip%define name gkrellm-xkb %define version 1.05 %define RELEASE 1 %define release %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} Name: %{name} Summary: gkrellm plugin to control xkb Version: %{version} Release: %{release} Source: http://sweb.cz/tripie/gkrellm/xkb/dist/gkrellm-xkb-%{version}.tar.gz Group: Applications URL: http://sweb.cz/tripie/gkrellm/xkb BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot License: GPL Requires: gkrellm >= 2.1.0, gtk2-devel >= 2.2.0 BuildRequires: gkrellm-devel >= 2.1.0, gtk2-devel >= 2.2.0 %description gkrellm plugin to monitor the currently-active national keyboard layout %prep %__rm -rf $RPM_BUILD_ROOT %setup -q -n %{name}-%{version} %build %__make PREFIX=%{_prefix} %install umask 022 %__mkdir_p $RPM_BUILD_ROOT/%{_libdir}/gkrellm2/plugins %__make PREFIX=$RPM_BUILD_ROOT/%{_prefix} install %clean %__rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/file.list.%{name} %files %defattr(755,root,root,755) %{_libdir}/gkrellm2/plugins/* %defattr(644,root,root,755) %doc LICENSE TODO VERSION %changelog * Mon Aug 04 2003 Rui M. Seabra - Create rpm spec gkrellm-xkb-1.05/caps_off.xpm0100664000077500007750000000146107776205327014742 0ustar triptrip/* XPM */ static char * caps_off_xpm[] = { "14 14 34 1", " c None", ". c #707070", "+ c #000000", "@ c #006B00", "# c #004800", "$ c #006500", "% c #000800", "& c #006800", "* c #005700", "= c #006A00", "- c #003300", "; c #001400", "> c #003E00", ", c #000100", "' c #005F00", ") c #005300", "! c #005200", "~ c #006600", "{ c #000700", "] c #002400", "^ c #005000", "/ c #006000", "( c #000200", "_ c #001600", ": c #003D00", "< c #002800", "[ c #003600", "} c #005C00", "| c #005D00", "1 c #003B00", "2 c #003A00", "3 c #005900", "4 c #006200", "5 c #005500", "..............", ".++++++@+++++.", ".++++++@#++++.", ".+++++$@@++++.", ".++++%&*=#+++.", ".++++-=;=>+++.", ".+++,')+!~{++.", ".+++]@'^'@-++.", ".+++)@@@@@/(+.", ".++_@#+++:@<+.", ".+[}@|1+23@42.", ".+5@@@5+5@@@5.", ".++++++++++++.", ".............."}; gkrellm-xkb-1.05/caps_on.xpm0100644000077500007750000000157307776202152014577 0ustar triptrip/* XPM */ static char * caps_on_xpm[] = { "14 14 39 1", " c None", ". c #707070", "+ c #000000", "@ c #00FF00", "# c #00AC00", "$ c #00F100", "% c #001400", "& c #00F700", "* c #00CF00", "= c #00FD00", "- c #007A00", "; c #00FE00", "> c #003200", ", c #009300", "' c #000400", ") c #00E400", "! c #00C500", "~ c #00C300", "{ c #00F400", "] c #001100", "^ c #005700", "/ c #00C000", "( c #00E300", "_ c #00C600", ": c #00E600", "< c #000600", "[ c #003500", "} c #009200", "| c #006100", "1 c #008200", "2 c #00DB00", "3 c #00DD00", "4 c #008E00", "5 c #008B00", "6 c #00D500", "7 c #00E900", "8 c #008C00", "9 c #00CC00", "0 c #00CB00", "..............", ".++++++@+++++.", ".++++++@#++++.", ".+++++$@@++++.", ".++++%&*=#+++.", ".++++-;>=,+++.", ".+++')!+~{]++.", ".+++^@)/(@-++.", ".+++_@@@@@:<+.", ".++[@#+++}@|+.", ".+12@34+56@78.", ".+9@@@0+9@@@9.", ".+++++++++++++", ".............."}; gkrellm-xkb-1.05/num_on.xpm0100644000077500007750000000207507776202202014442 0ustar triptrip/* XPM */ static char * num_on_xpm[] = { "14 14 52 1", " c None", ". c #707070", "+ c #000000", "@ c #005A00", "# c #00D900", "$ c #00F900", "% c #00D200", "& c #005100", "* c #004D00", "= c #00FE00", "- c #00F300", "; c #00CB00", "> c #00F700", ", c #004F00", "' c #00D100", ") c #00EC00", "! c #001B00", "~ c #002400", "{ c #00EF00", "] c #00D800", "^ c #00FB00", "/ c #00BA00", "( c #00A500", "_ c #00FF00", ": c #00DB00", "< c #001D00", "[ c #004000", "} c #005600", "| c #006200", "1 c #00F100", "2 c #00FD00", "3 c #006900", "4 c #006100", "5 c #00C100", "6 c #009F00", "7 c #005F00", "8 c #001000", "9 c #00E200", "0 c #002300", "a c #000200", "b c #002600", "c c #00CD00", "d c #00DC00", "e c #00DD00", "f c #00CF00", "g c #00BB00", "h c #000B00", "i c #008F00", "j c #00F000", "k c #00F500", "l c #00C600", "m c #000100", "..............", ".++++@#$%&+++.", ".+++*=-;>=,++.", ".+++')!+~{]++.", ".+++^/+++(_~+.", ".+++:{<+[$_}+.", ".+++|_1;2__3+.", ".++++4:$56_7+.", ".+++++++89_0+.", ".+++a++bc_(++.", ".+++def2_gh++.", ".+++ijkl4m+++.", ".++++++++++++.", ".............."}; gkrellm-xkb-1.05/num_off.xpm0100644000077500007750000000170607776205372014613 0ustar triptrip/* XPM */ static char * num_off_xpm[] = { "14 14 44 1", " c None", ". c #707070", "+ c #000000", "@ c #002600", "# c #005B00", "$ c #006900", "% c #005900", "& c #002200", "* c #002000", "= c #006B00", "- c #006600", "; c #005500", "> c #006800", ", c #002100", "' c #005800", ") c #006300", "! c #000B00", "~ c #000F00", "{ c #006400", "] c #004E00", "^ c #004500", "/ c #005C00", "( c #000C00", "_ c #001B00", ": c #002400", "< c #002900", "[ c #006500", "} c #006A00", "| c #002C00", "1 c #002800", "2 c #005100", "3 c #004300", "4 c #000700", "5 c #005F00", "6 c #000E00", "7 c #000100", "8 c #001000", "9 c #005600", "0 c #005D00", "a c #005700", "b c #000400", "c c #003C00", "d c #006700", "e c #005300", "..............", ".++++@#$%&+++.", ".+++*=-;>=,++.", ".+++')!+~{#++.", ".+++$]+++^=~+.", ".+++/{(+_$=:+.", ".+++<=[;}==|+.", ".++++1/$23=1+.", ".+++++++45=6+.", ".+++7++89=^++.", ".+++00a}=]b++.", ".+++c[de1++++.", ".++++++++++++.", ".............."};