Иконка urxvt

Хотеть иконку. В urxvt. Согласно ewmh, а не костылями fvwm. И чтобы без всяких –enable-pixbuf и прочего свистяще-пердящего барахла, тянущего лишние зависимости типа gdk-pixbuf

Ну чо, хотеть – сделать. На то он и опенсорц. Иконки, согласно ewmh, задаются через XChangeProperty и атом _NET_WM_ICON. Собственно атом – массив чисел, описывающих иконку. Иконок в одном атоме может быть несколько. Первые два слова описания иконки – размер, дальше пиксели в формате ARGB. Основной фокус – эти числа получить

в результате из того-же urxvt выдрал код преобразования GdkPixbuf в нужную последовательность чисел и оформил в виде отдельной тулзинки

#include <stdio.h>

#include <gdk-pixbuf/gdk-pixbuf.h>

int
main (int argc, char *argv[])
{
  long *buffer = NULL;

  if (argc < 2)
    return 1;

  GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file (argv[1], NULL);
  if (!pixbuf)
    {
      g_warning ("Loading image failed");
      return 1;
    }

  unsigned int w = gdk_pixbuf_get_width (pixbuf);
  unsigned int h = gdk_pixbuf_get_height (pixbuf);

  int rowstride = gdk_pixbuf_get_rowstride (pixbuf);
  unsigned char *row = gdk_pixbuf_get_pixels (pixbuf);
  int channels = gdk_pixbuf_get_n_channels (pixbuf);

  printf ("0x%X, 0x%X,\n", w, h);
  for (int i = 0; i < h; i++)
    {
      for (int j = 0; j < w; j++)
        {
          unsigned char *pixel = row + j * channels;
          long value;

          if (channels == 4)
            value = pixel[3];
          else
            value = (unsigned char) 0x00ff;

          value = (value << 8) + pixel[0];
          value = (value << 8) + pixel[1];
          value = (value << 8) + pixel[2];
          printf ("0x%X, ", value);
        }

      row += rowstride;
    }
  printf ("\n");

  return 0;
}

Собирается просто – gcc -o pb pb.c $(pkg-config --cflags --libs gdk-pixbuf-2.0)
В качестве аргумента передается файл с изображением, выхлоп – готовая последовательность значений для вставки

Ну и собственно патчик для urxvt с иконкой терминала из темы Tango размерами 8×8 и 32×32

--- rxvt-unicode-9.22/src/init.C.orig	2016-01-18 21:35:08.000000000 +0200
+++ rxvt-unicode-9.22/src/init.C	2019-07-30 01:29:40.772690804 +0300
@@ -1214,7 +1214,11 @@
 void
 rxvt_term::set_icon (const char *file)
 {
-#if HAVE_PIXBUF && ENABLE_EWMH
+#if ENABLE_EWMH
+# if HAVE_PIXBUF
+  if (file == NULL || file[0] == '\0')
+    return;
+
   GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file (file, NULL);
   if (!pixbuf)
     {
@@ -1269,6 +1273,17 @@
     rxvt_warn ("Memory allocation for icon hint failed, continuing without.\n");
 
   g_object_unref (pixbuf);
+# else
+  unsigned long buffer[] = {
+    0x10, 0x10,
+    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x33AAAFA5, 0xD5CECFCC, 0xE6CECFCC, 0xE6CECFCC, 0xE6CECFCC, 0xE6CECFCC, 0xE6CDCECB, 0xE6CCCECB, 0xE6CBCCC9, 0xE6CACBC8, 0xE6C8CAC6, 0xE6C8C9C5, 0xE6C5C6C3, 0xE5C4C5C2, 0xD4BDBFBC, 0x338C8C87, 0xB3C9C9C6, 0xFFC2C4C0, 0xFF7A8070, 0xFF777C6B, 0xFF767C6B, 0xFF777D6C, 0xFF777D6C, 0xFF787E6D, 0xFF787E6E, 0xFF797F6E, 0xFF7A7F6F, 0xFF7A816F, 0xFF7B8170, 0xFF808776, 0xFFC3C5C3, 0xAFB0B2AD, 0xBFCFD0CC, 0xFF9FA19A, 0xFF4B5240, 0xFF7C876B, 0xFF7C876A, 0xFF7A8768, 0xFF7A8567, 0xFF778466, 0xFF778464, 0xFF768262, 0xFF758261, 0xFF74815F, 0xFF73805E, 0xFF444C37, 0xFFA6ABA0, 0xBAADB1AB, 0xBFCFD0CC, 0xFF9EA099, 0xFF4F5843, 0xFF93A27D, 0xFF91A17B, 0xFF909F78, 0xFF8F9F76, 0xFF8D9E74, 0xFF8C9C72, 0xFF8A9B6F, 0xFF88996E, 0xFF86986B, 0xFF809363, 0xFF414C31, 0xFFA0A49A, 0xB9A3A5A1, 0xBFCCCECA, 0xFF9EA19A, 0xFF464E39, 0xFF81906C, 0xFF7E8E6A, 0xFF7B8A65, 0xFF798763, 0xFF788761, 0xFF76865E, 0xFF6D7D55, 0xFF607345, 0xFF556938, 0xFF526634, 0xFF303B1E, 0xFF999D94, 0xB8989A96, 0xBFCACAC6, 0xFF9EA19A, 0xFF3C4331, 0xFF80946E, 0xFFD7E6D4, 0xFFA2B496, 0xFF6D7F5A, 0xFF63734C, 0xFF546539, 0xFF4C5E30, 0xFF4C5F31, 0xFF4C5F31, 0xFF4D6031, 0xFF2B351C, 0xFF91958C, 0xB791928D, 0xBFC2C3C0, 0xFF979A94, 0xFF313826, 0xFF576646, 0xFF6A815C, 0xFFAEC4A8, 0xFFC0D8BC, 0xFF41522B, 0xFF3F4F29, 0xFF3F4F29, 0xFF3F5029, 0xFF405029, 0xFF40502A, 0xFF252E17, 0xFF898B83, 0xB6888985, 0xBFBBBCB8, 0xFF91938E, 0xFF212918, 0xFF526844, 0xFFCFE1CC, 0xFF90A487, 0xFF475B36, 0xFF384724, 0xFF384725, 0xFF384725, 0xFF394825, 0xFF394825, 0xFF394825, 0xFF202815, 0xFF80837C, 0xB57D807B, 0xBFB4B4B0, 0xFF8A8D87, 0xFF181F10, 0xFF334226, 0xFF344326, 0xFF2C381D, 0xFF2C381D, 0xFF2C381D, 0xFF2C381D, 0xFF2D391D, 0xFF2D391E, 0xFF2D391E, 0xFF2E3A1E, 0xFF1A2111, 0xFF7C7E77, 0xB37B7C78, 0xBFACAEA8, 0xFF838580, 0xFF13180D, 0xFF232D18, 0xFF242E18, 0xFF242E18, 0xFF627A5C, 0xFF9AB597, 0xFF9AB597, 0xFF9AB697, 0xFF405236, 0xFF263019, 0xFF26311A, 0xFF151A0E, 0xFF7B7D76, 0xB2787A74, 0xBFA4A6A2, 0xFF7F807C, 0xFF0E110B, 0xFF10150B, 0xFF10150B, 0xFF10150B, 0xFF11170D, 0xFF11190D, 0xFF11190D, 0xFF11190D, 0xFF11160C, 0xFF10150B, 0xFF10150B, 0xFF0E110A, 0xFF7A7D77, 0xB1757670, 0xBA9B9C98, 0xFF7D7F79, 0xFF767873, 0xFF767973, 0xFF777A74, 0xFF787B75, 0xFF787B75, 0xFF787B75, 0xFF787B75, 0xFF787B75, 0xFF838A79, 0xFF79826F, 0xFF747670, 0xFF7B7D78, 0xFF797B75, 0xAB71746E, 0x6A71716F, 0xF6989996, 0xFF949691, 0xFF92948F, 0xFF91928D, 0xFF8E908B, 0xFF8D8F8A, 0xFF8B8D88, 0xFF898B86, 0xFF888984, 0xFF88907E, 0xFF848B79, 0xFF858882, 0xFF878884, 0xF37B7B77, 0x6562655D, 0x0, 0x355B6052, 0x7A5C5E58, 0x88585A56, 0x91565853, 0x9A545651, 0xA154564F, 0xA651534E, 0xA651534E, 0xA253554F, 0x9B545651, 0x92565752, 0x88585C56, 0x7C5D5F58, 0x355B6052, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
+    0x20, 0x20,
+    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4BFBF80, 0x8DA6AAA1, 0xDCB8BBB4, 0xE9C4C5C1, 0xEAC3C4C0, 0xEAC3C4C0, 0xEAC3C4C0, 0xEAC3C4C0, 0xEAC3C4C0, 0xEAC3C4C0, 0xEAC3C4C0, 0xEAC3C4C0, 0xEAC2C4BF, 0xEAC1C2BE, 0xEAC0C2BD, 0xEABFC1BB, 0xEABEBFBA, 0xEABBBEB9, 0xEABBBDB8, 0xEABABBB7, 0xEAB8BAB5, 0xEAB7B8B5, 0xEAB6B8B4, 0xEAB5B7B2, 0xEAB3B5AF, 0xEAB1B3AE, 0xE9AFB1AD, 0xDBA0A39D, 0x8C878A83, 0x4808080, 0x0, 0x0, 0xACA8AAA3, 0xFBDEE0DC, 0xFFDFE0DF, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D8, 0xFFD8D9D7, 0xFFD8D9D7, 0xFFD7D8D6, 0xFFD7D8D6, 0xFFDDDDDC, 0xFAD2D3D1, 0xAB83867F, 0x0, 0x1EA2A299, 0xEDC9CBC6, 0xFFD9D9D8, 0xFFCACBC9, 0xFFADAEAD, 0xFFA7A8A7, 0xFFA7A8A7, 0xFFA7A8A7, 0xFFA7A8A7, 0xFFA7A8A7, 0xFFA8A9A8, 0xFFA9AAA9, 0xFFA9AAA9, 0xFFAAABAA, 0xFFABACAB, 0xFFABACAB, 0xFFACADAC, 0xFFADAEAD, 0xFFAEAFAE, 0xFFAEAFAE, 0xFFAFB0AF, 0xFFB0B1B0, 0xFFB0B1B0, 0xFFB1B2B1, 0xFFB2B3B2, 0xFFB2B3B2, 0xFFB3B4B3, 0xFFB8B9B7, 0xFFCBCCCA, 0xFFD5D6D5, 0xECAEB1AD, 0x1C6D766D, 0x4DA2A69C, 0xFCDCDDDA, 0xFFCDCECC, 0xFF91938D, 0xFF5A6150, 0xFF515746, 0xFF505746, 0xFF505746, 0xFF505746, 0xFF505745, 0xFF505745, 0xFF505745, 0xFF505745, 0xFF505745, 0xFF505745, 0xFF505745, 0xFF505745, 0xFF505745, 0xFF505745, 0xFF505745, 0xFF505745, 0xFF4F5643, 0xFF4E5543, 0xFF4E5642, 0xFF4E5643, 0xFF4E5643, 0xFF4E5643, 0xFF5D6550, 0xFFA2A59E, 0xFFCCCDCB, 0xFCC8CAC6, 0x4C6B6F68, 0x55A2A59C, 0xFFDDDEDC, 0xFFCCCDCB, 0xFF7A7E75, 0xFF31362A, 0xFF4E5443, 0xFF5B634E, 0xFF5A634E, 0xFF5A634D, 0xFF5A624C, 0xFF59624C, 0xFF59614C, 0xFF59614B, 0xFF59614B, 0xFF58614A, 0xFF58614A, 0xFF576049, 0xFF576049, 0xFF576048, 0xFF566048, 0xFF565F47, 0xFF565F46, 0xFF555F46, 0xFF555E45, 0xFF555E45, 0xFF545E44, 0xFF47503A, 0xFF2D3224, 0xFF969A90, 0xFFC4C5C3, 0xFFC7C8C6, 0x55666C63, 0x55A2A59C, 0xFFDDDEDC, 0xFFCCCDCB, 0xFF7A7D75, 0xFF2F3428, 0xFF7A856A, 0xFF9DAA88, 0xFF9CA987, 0xFF9BA886, 0xFF9BA885, 0xFF99A783, 0xFF99A782, 0xFF97A582, 0xFF97A580, 0xFF95A47F, 0xFF95A47E, 0xFF94A47D, 0xFF93A27C, 0xFF92A27B, 0xFF92A27A, 0xFF91A078, 0xFF90A078, 0xFF8FA076, 0xFF8F9F75, 0xFF8D9D75, 0xFF8D9D73, 0xFF6E7B59, 0xFF2B3022, 0xFF969A90, 0xFFBDBFBC, 0xFFC2C3C0, 0x55636660, 0x55A2A59C, 0xFFDDDEDC, 0xFFCCCDCB, 0xFF797C75, 0xFF2D3126, 0xFF778264, 0xFF98A781, 0xFF97A77F, 0xFF96A67F, 0xFF96A67E, 0xFF96A57D, 0xFF94A37C, 0xFF94A37B, 0xFF93A47A, 0xFF92A378, 0xFF90A178, 0xFF91A176, 0xFF90A075, 0xFF8FA075, 0xFF8EA074, 0xFF8D9E73, 0xFF8C9E71, 0xFF8B9C71, 0xFF8B9C70, 0xFF8B9D6E, 0xFF8A9C6D, 0xFF6A7955, 0xFF282E1F, 0xFF969990, 0xFFB7B8B5, 0xFFBDBEBB, 0x555D635A, 0x55A2A59C, 0xFFDCDDDB, 0xFFCCCDCB, 0xFF7B7D76, 0xFF2A2E23, 0xFF707B5E, 0xFF909F79, 0xFF8F9E78, 0xFF8E9E76, 0xFF8D9C76, 0xFF8D9C75, 0xFF8C9B74, 0xFF8A9A73, 0xFF899972, 0xFF899970, 0xFF88996F, 0xFF86976F, 0xFF86976D, 0xFF86976C, 0xFF85966B, 0xFF84956A, 0xFF83946A, 0xFF829468, 0xFF819367, 0xFF7B8E5F, 0xFF738656, 0xFF55653C, 0xFF1F2514, 0xFF969991, 0xFFB0B1AE, 0xFFB7B9B6, 0x555A5D57, 0x559C9F96, 0xFFDCDDDA, 0xFFCCCDCB, 0xFF7C7E78, 0xFF272C20, 0xFF677156, 0xFF82906E, 0xFF818F6D, 0xFF818F6B, 0xFF808F6A, 0xFF7E8D69, 0xFF7E8D69, 0xFF7D8C68, 0xFF7C8B66, 0xFF7B8965, 0xFF7A8965, 0xFF7A8963, 0xFF788762, 0xFF788761, 0xFF768660, 0xFF75855D, 0xFF6B7C51, 0xFF5F7044, 0xFF556837, 0xFF536735, 0xFF536735, 0xFF43542A, 0xFF1B2211, 0xFF969991, 0xFFA9ABA7, 0xFFB1B4B0, 0x55575A54, 0x55999C93, 0xFFDADCD9, 0xFFCCCDCB, 0xFF7D7F7A, 0xFF25291E, 0xFF606A50, 0xFF7A8866, 0xFF819871, 0xFF7C906B, 0xFF768562, 0xFF768561, 0xFF748360, 0xFF74835E, 0xFF72815E, 0xFF72815D, 0xFF71805C, 0xFF707F5B, 0xFF707F59, 0xFF6A7A53, 0xFF5B6C41, 0xFF506234, 0xFF4E6132, 0xFF4E6132, 0xFF4F6132, 0xFF4F6132, 0xFF4F6132, 0xFF404F29, 0xFF1A2010, 0xFF969990, 0xFFA2A4A0, 0xFFACAEAA, 0x55545751, 0x55969990, 0xFFDADBD9, 0xFFCCCDCB, 0xFF7F807B, 0xFF22261B, 0xFF59654A, 0xFF74825E, 0xFF94AC87, 0xFFDFEFDE, 0xFFAEC6A5, 0xFF7C926B, 0xFF708059, 0xFF6F7D57, 0xFF6E7E56, 0xFF6C7C55, 0xFF6C7C54, 0xFF67774E, 0xFF586A3C, 0xFF4F6332, 0xFF4F6231, 0xFF4F6231, 0xFF4F6231, 0xFF4F6231, 0xFF4F6231, 0xFF4F6331, 0xFF506331, 0xFF3E4E28, 0xFF181E0F, 0xFF949890, 0xFF9C9D99, 0xFFA7A8A5, 0x55545751, 0x5590938A, 0xFFD8DAD7, 0xFFC9CAC8, 0xFF7F807B, 0xFF1F2318, 0xFF535E43, 0xFF697855, 0xFF87A17A, 0xFFE9F5E9, 0xFFF9FDF9, 0xFFE9F5E8, 0xFFADC7A7, 0xFF779168, 0xFF63764E, 0xFF61714A, 0xFF54663B, 0xFF4A5D30, 0xFF495C2F, 0xFF495C2F, 0xFF495C2F, 0xFF495C2F, 0xFF4A5D2F, 0xFF4A5D2F, 0xFF4A5D2F, 0xFF4A5D2F, 0xFF4A5D2F, 0xFF3A4A25, 0xFF171C0F, 0xFF92958E, 0xFF959692, 0xFFA2A3A0, 0x55545751, 0x558D9087, 0xFFD5D6D4, 0xFFC3C4C1, 0xFF7F807B, 0xFF1C2016, 0xFF49533A, 0xFF5B684A, 0xFF5D6D4B, 0xFF647C54, 0xFF88A27E, 0xFFAEC6A8, 0xFFD9E9D9, 0xFFE6F6E7, 0xFF9DBC96, 0xFF44572E, 0xFF405029, 0xFF405029, 0xFF415029, 0xFF41512A, 0xFF41512A, 0xFF41512A, 0xFF41512A, 0xFF41512A, 0xFF42512A, 0xFF42512A, 0xFF42512A, 0xFF354222, 0xFF151A0D, 0xFF90938C, 0xFF8E908B, 0xFF9D9F9B, 0x55545751, 0x55878D84, 0xFFD3D4D1, 0xFFBCBDBA, 0xFF7F807C, 0xFF191D13, 0xFF414B32, 0xFF525E40, 0xFF525F40, 0xFF526441, 0xFF617953, 0xFF85A27C, 0xFFA7C2A2, 0xFFDBF0DA, 0xFFA4C49E, 0xFF3E502A, 0xFF3C4B27, 0xFF3C4B27, 0xFF3C4B27, 0xFF3C4B27, 0xFF3D4B28, 0xFF3D4B28, 0xFF3D4C28, 0xFF3D4C28, 0xFF3D4C28, 0xFF3D4C28, 0xFF3D4C28, 0xFF313D20, 0xFF14190D, 0xFF8E918A, 0xFF878984, 0xFF989995, 0x55545751, 0x5584877E, 0xFFD0D0CE, 0xFFB5B6B3, 0xFF7E7F7C, 0xFF161A10, 0xFF38432A, 0xFF455333, 0xFF658058, 0xFFC7DBC4, 0xFFEFFAEF, 0xFFEEF9EE, 0xFFB4CDAF, 0xFF6C8A60, 0xFF3E532B, 0xFF3A4926, 0xFF3B4926, 0xFF3B4926, 0xFF3B4926, 0xFF3B4A26, 0xFF3B4A26, 0xFF3B4A26, 0xFF3C4A26, 0xFF3C4A26, 0xFF3C4B26, 0xFF3C4B26, 0xFF3C4B26, 0xFF2F3B1F, 0xFF12170C, 0xFF8C8E88, 0xFF80827D, 0xFF939490, 0x55545751, 0x5581847B, 0xFFCCCDCB, 0xFFAEB0AC, 0xFF7E7F7B, 0xFF10140A, 0xFF29331B, 0xFF344222, 0xFF68835D, 0xFFE6F6E6, 0xFFA5C09F, 0xFF5C774F, 0xFF384A26, 0xFF354323, 0xFF354323, 0xFF354323, 0xFF354423, 0xFF354423, 0xFF364423, 0xFF364423, 0xFF364423, 0xFF364523, 0xFF364523, 0xFF364523, 0xFF364524, 0xFF374524, 0xFF374524, 0xFF2B371C, 0xFF11150B, 0xFF8A8C87, 0xFF7A7C76, 0xFF8D8E8A, 0x55545751, 0x557B7E78, 0xFFC9CBC8, 0xFFA7A9A6, 0xFF7E7F7C, 0xFF0E1209, 0xFF242C18, 0xFF2E391E, 0xFF48623C, 0xFF49613D, 0xFF303D20, 0xFF2E391E, 0xFF2E391E, 0xFF2E3A1E, 0xFF2E3A1F, 0xFF2E3A1F, 0xFF2E3A1F, 0xFF2E3A1F, 0xFF2E3A1F, 0xFF2E3B1F, 0xFF2E3B1F, 0xFF2F3B1F, 0xFF2F3B1F, 0xFF2F3B1F, 0xFF2F3C1F, 0xFF2F3C1F, 0xFF2F3C20, 0xFF263019, 0xFF0F130A, 0xFF888B85, 0xFF777973, 0xFF8A8D88, 0x55545751, 0x55787B72, 0xFFC6C7C5, 0xFFA2A39F, 0xFF7D7F7B, 0xFF0D1009, 0xFF202916, 0xFF29341C, 0xFF29341C, 0xFF29341C, 0xFF29341C, 0xFF29341C, 0xFF29341C, 0xFF29341C, 0xFF29341C, 0xFF29341C, 0xFF2A351D, 0xFF2A351D, 0xFF2A351D, 0xFF2A351D, 0xFF2A351D, 0xFF2A361D, 0xFF2A361D, 0xFF2B361D, 0xFF2B361D, 0xFF2B361D, 0xFF2B361D, 0xFF232C17, 0xFF0D1109, 0xFF878A85, 0xFF777973, 0xFF888A86, 0x55545751, 0x5572786F, 0xFFC4C4C1, 0xFF9B9C98, 0xFF7D7F7B, 0xFF0B0E07, 0xFF1D2515, 0xFF26311A, 0xFF26311A, 0xFF26311A, 0xFF26311A, 0xFF26311A, 0xFF27311A, 0xFF2D4022, 0xFF89A583, 0xFF90AA8B, 0xFF90AA8B, 0xFF90AA8B, 0xFF90AA8C, 0xFF90AB8C, 0xFF8FAC8B, 0xFF536B4A, 0xFF27331B, 0xFF27331B, 0xFF27331B, 0xFF28331B, 0xFF28331B, 0xFF202815, 0xFF0C0F08, 0xFF878984, 0xFF777973, 0xFF868984, 0x55545751, 0x556F726C, 0xFFC0C1BE, 0xFF949691, 0xFF7D7E7B, 0xFF090C07, 0xFF182112, 0xFF202A16, 0xFF212A17, 0xFF212A17, 0xFF212B17, 0xFF212B17, 0xFF212B17, 0xFF283B1F, 0xFFB2CAAF, 0xFFC1D4C0, 0xFFC1D4C0, 0xFFC1D4C0, 0xFFC1D4C0, 0xFFC1D4C0, 0xFFC1D4BF, 0xFF627E5C, 0xFF232D18, 0xFF232D18, 0xFF232D18, 0xFF232D18, 0xFF232D18, 0xFF1B2313, 0xFF0B0D07, 0xFF868884, 0xFF777973, 0xFF848681, 0x55545751, 0x556C6F66, 0xFFBDBEBB, 0xFF8D8F8A, 0xFF7D7E7B, 0xFF090B06, 0xFF13180D, 0xFF171D10, 0xFF171D10, 0xFF171D10, 0xFF171D10, 0xFF171D10, 0xFF171D10, 0xFF181F11, 0xFF1A2514, 0xFF1A2514, 0xFF1A2514, 0xFF1A2514, 0xFF1A2514, 0xFF1A2514, 0xFF1A2514, 0xFF1A2213, 0xFF171D10, 0xFF171D10, 0xFF171D10, 0xFF171D10, 0xFF171D10, 0xFF12180D, 0xFF090B06, 0xFF858784, 0xFF777973, 0xFF82847F, 0x55545751, 0x55666C63, 0xFFBABBB8, 0xFF878883, 0xFF7F807D, 0xFF12150F, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF090B06, 0xFF11140E, 0xFF868784, 0xFF777973, 0xFF7F827D, 0x55545751, 0x55636660, 0xFFB7B8B5, 0xFF81837D, 0xFF7D7F7A, 0xFF80817E, 0xFF81827F, 0xFF828380, 0xFF838481, 0xFF858683, 0xFF868784, 0xFF878885, 0xFF898A87, 0xFF898A87, 0xFF898A87, 0xFF898A87, 0xFF898A87, 0xFF898A87, 0xFF898A87, 0xFF898A87, 0xFF898A87, 0xFF898A87, 0xFF898A87, 0xFF898A87, 0xFF858683, 0xFF7D7F7B, 0xFF7E7F7C, 0xFF878884, 0xFF878885, 0xFF7C7E79, 0xFF777973, 0xFF7E807B, 0x55545751, 0x4060645C, 0xF8ABACA9, 0xFF82847F, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFFA5BB8F, 0xFF89A56D, 0xFF6D6F6A, 0xFF747671, 0xFF777A74, 0xFF7F827D, 0xFF777973, 0xFF777973, 0xFF797B75, 0xF4777974, 0x40545850, 0xE5B5B5B, 0xE67C807A, 0xFFAEAFAC, 0xFF787A74, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF777973, 0xFF89A56D, 0xFF82A065, 0xFF757772, 0xFF797C76, 0xFF7D807A, 0xFF8B8D88, 0xFF777973, 0xFF777973, 0xFF848680, 0xE262665F, 0xD4E4E4E, 0x0, 0x62565E53, 0xED888B85, 0xFFB3B3B0, 0xFFB1B2AF, 0xFFB0B1AD, 0xFFAEAFAC, 0xFFACADA9, 0xFFAAABA8, 0xFFA9AAA6, 0xFFA6A8A4, 0xFFA5A6A2, 0xFFA3A5A1, 0xFFA1A39E, 0xFFA0A19D, 0xFF9E9F9B, 0xFF9C9D99, 0xFF9A9C97, 0xFF989A95, 0xFF969893, 0xFF959692, 0xFF939490, 0xFF91928D, 0xFF8E908B, 0xFF8E908B, 0xFF91928E, 0xFF8D8E8A, 0xFF888984, 0xFF82837E, 0xE8686B64, 0x61575C54, 0x0, 0x0, 0x0, 0x2D555B4F, 0x9A595D56, 0xC8585C54, 0xCC565A54, 0xCE575A53, 0xD0565952, 0xD2565A53, 0xD5555951, 0xD7545952, 0xD9555851, 0xDB545850, 0xDD545851, 0xDE545750, 0xDF535750, 0xDF535750, 0xDE545750, 0xDD545851, 0xDB545850, 0xD9555851, 0xD7555952, 0xD5555951, 0xD3565952, 0xD1555A53, 0xCF565A53, 0xCC565A54, 0xC9585B54, 0x9B595C56, 0x2C51574B, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4404040, 0xD3B3B3B, 0x172C372C, 0x1F313131, 0x262F362F, 0x2D33332D, 0x3332372D, 0x3931362D, 0x3D32322E, 0x40343430, 0x4232322E, 0x4232362E, 0x4133332F, 0x3E31352D, 0x3A303530, 0x35303530, 0x2F313631, 0x2833332D, 0x212E362E, 0x19333333, 0x10303030, 0x655552B, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1000000, 0x4404040, 0x8202020, 0xC2B2B2B, 0xF223322, 0x112D2D2D, 0x14333333, 0x14333333, 0x12393939, 0xF333333, 0xD272727, 0x91C1C1C, 0x5333333, 0x2808080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
+  };
+
+  XChangeProperty (dpy, parent, xa[XA_NET_WM_ICON], XA_CARDINAL, 32,
+                   PropModeReplace, (unsigned char *) buffer, 2 + 16 * 16 + 2 + 32 * 32);
+# endif
 #endif
 }
 
@@ -1364,9 +1379,7 @@
    * set up icon hint
    * rs [Rs_iconfile] is path to icon
    */
-
-  if (rs [Rs_iconfile])
-    set_icon (rs [Rs_iconfile]);
+  set_icon (rs [Rs_iconfile]);
 #endif
 
 #if ENABLE_FRILLS

Залишити відповідь

Ваша e-mail адреса не оприлюднюватиметься. Обов’язкові поля позначені *