{"id":302694,"date":"2020-04-28T21:00:17","date_gmt":"2020-04-28T21:00:17","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=302694"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=302694","title":{"rendered":"\u041a\u043e\u0440\u0440\u0435\u043a\u0442\u043e\u0440 \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u043e\u043a \u00ab\u0445switcher\u00bb \u0434\u043b\u044f linux: \u0448\u0430\u0433 \u0432\u0442\u043e\u0440\u043e\u0439"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/499560\/\">\u0422\u0430\u043a \u043a\u0430\u043a <a href=\"https:\/\/habr.com\/ru\/post\/495748\/\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f<\/a> (\u0445switcher \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u0438 \u00abproof of concept\u00bb) \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043e\u0442\u0437\u044b\u0432\u043e\u0432 <i>(\u0447\u0442\u043e \u043f\u0440\u0438\u044f\u0442\u043d\u043e)<\/i>, \u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043b \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u0451 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. <i>\u0422\u0435\u043f\u0435\u0440\u044c \u0445\u043e\u0447\u0443 \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0436\u043a\u043e \u0432\u0430\u0448\u0435\u0433\u043e\u2026<\/i> \u0412\u0442\u043e\u0440\u043e\u0439 \u0448\u0430\u0433 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0439: \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435\/\u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ld\/it\/ri\/lditri2811ilg7kt2fxabhlvxzs.jpeg\"><br \/>  <a name=\"habracut\"><\/a><br \/>  \u041a\u0430\u043a-\u0442\u043e \u043e\u043d\u043e \u0442\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430\u043c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u044d\u0442\u0438 \u043a\u0440\u0443\u0442\u0438\u043b\u043a\u0438 \u0434\u0438\u043a\u043e \u0441\u043a\u0443\u0447\u043d\u043e.  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0431\u044b\u0442\u044c \u0433\u043e\u043b\u043e\u0441\u043b\u043e\u0432\u043d\u044b\u043c, \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437 \u0442\u043e\u0433\u043e \u0441 \u0447\u0435\u043c \u0438\u043c\u0435\u044e \u0434\u0435\u043b\u043e.<\/b>                         <\/p>\n<div class=\"spoiler_text\">\u041e\u0442\u043b\u0438\u0447\u043d\u043e \u0432 \u0446\u0435\u043b\u043e\u043c \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043d\u044b\u0435 (\u0438 \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435) Apache Kafka &amp; ZooKeeper.<br \/>  \u2014 \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f? \u041d\u043e \u044d\u0442\u043e \u0436\u0435 \u0441\u043a\u0443\u0447\u043d\u043e! \u0422\u044f\u043f-\u043b\u044f\u043f xml (\u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb).<br \/>  \u2014 \u041e\u0439, \u0430 \u0432\u044b \u0435\u0449\u0451 \u0438 ACL \u0445\u043e\u0442\u0438\u0442\u0435? \u041d\u043e \u044d\u0442\u043e \u0442\u0430\u043a \u043c\u0443\u0442\u043e\u0440\u043d\u043e! \u0422\u0430\u043f-\u043b\u044f\u043f\u2026 \u041a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a.  <\/div>\n<\/p><\/div>\n<p>  \u0410 \u0432 \u043c\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u2014 \u0440\u043e\u0432\u043d\u043e \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442. \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e <i>(\u0443\u0432\u044b, \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0430 \u043f\u043e\u0447\u0442\u0438 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u0442)<\/i> \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u0430\u043b\u044c\u0448\u0435 \u043b\u0435\u0433\u043a\u043e \u0438 \u043d\u0435\u043f\u0440\u0438\u043d\u0443\u0436\u0434\u0451\u043d\u043d\u043e <i>(\u043d\u0443, \u043f\u043e\u0447\u0442\u0438)<\/i> \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0445\u0435\u043c\u0443.  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u043e\u043f\u0430\u0434\u0430\u043b\u0430\u0441\u044c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u043e \u043d\u0435\u043b\u0451\u0433\u043a\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 data-scientist&#39;\u043e\u0432\u2026<\/b>                         <\/p>\n<div class=\"spoiler_text\">\u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0443 \u043d\u0438\u0445 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043f\u043e\u043b\u043d\u043e\u0439 \u043c\u0435\u0440\u0435. \u0410 \u0432 \u043c\u043e\u0435\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f, \u00ab\u0432\u0435\u0440\u0441\u0438\u044f \u043b\u0430\u0439\u0442\u00bb. \u041c\u043d\u043e\u0433\u043e\u0442\u043e\u043c\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438, \u043c\u0430\u0442\u0451\u0440\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b <s>\u0441 \u041e\u041e\u041f \u043d\u0430\u043f\u0435\u0440\u0435\u0432\u0435\u0441<\/s> \u0438 \u0442.\u0434. \u2014 \u044d\u0442\u043e \u0432\u0441\u0451 \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430<s>\/\u0435\u0441\u043b\u0438<\/s> \u0432\u0437\u043b\u0435\u0442\u0438\u0442. \u0410 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0443 \u043d\u0430\u0434\u043e \u0432\u043e\u0442 \u0437\u0434\u0435\u0441\u044c \u0438 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441 \u0447\u0435\u0433\u043e-\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c.  <\/div>\n<\/p><\/div>\n<p>  \u0411\u043b\u0438\u0436\u0435 \u043a \u0434\u0435\u043b\u0443. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043e\u0441\u043d\u043e\u0432\u044b \u044f \u0432\u0437\u044f\u043b TOML <a href=\"https:\/\/github.com\/toml-lang\/toml\" rel=\"nofollow\">\u0432\u043e\u0442 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u0433\u0440\u0430\u0436\u0434\u0430\u043d\u0438\u043d\u0430<\/a>.<br \/>  \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d <i>(TOML) <\/i> \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e-\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0439. \u0410 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u2014 \u0442\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f 1:1 \u0432 \u043b\u044e\u0431\u043e\u0439 \u0438\u0437 \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u0445 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u043e\u0432: XML, JSON, YAML.<br \/>  \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043c\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0442 \u00abgithub.com\/BurntSushi\/toml\u00bb \u0445\u043e\u0442\u044f \u0438 \u043d\u0435 \u0441\u0430\u043c\u0430\u044f \u043c\u043e\u0434\u043d\u0430\u044f (\u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 1.4), \u0437\u0430\u0442\u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u0430 \u0441 \u0442\u0435\u043c \u0436\u0435 (\u00ab\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c\u00bb) JSON.<br \/>  \u0422\u043e \u0435\u0441\u0442\u044c, \u043f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u00ab\u0438\u0434\u0438 \u043b\u0435\u0441\u043e\u043c \u0441 \u044d\u0442\u0438\u043c \u0442\u0432\u043e\u0438\u043c TOML, \u044f \u0445\u043e\u0447\u0443 XXX\u00bb \u0438 \u00ab\u043f\u0440\u043e\u043f\u0430\u0442\u0447\u0438\u0442\u044c\u00bb \u043a\u043e\u0434 \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439.<br \/>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0445switcher \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043e\u043a\u043e\u0448\u043a\u0438 <i>(\u0442\u043e\u0447\u043d\u043e \u043d\u0435 \u044f)<\/i> \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u00ab\u0441 \u044d\u0442\u0438\u043c \u0432\u0430\u0448\u0438\u043c \u0434\u043e\u043b\u0431\u0430\u043d\u044b\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u043c\u00bb \u2014 \u043d\u0435 \u043f\u0440\u0435\u0434\u0432\u0438\u0434\u0438\u0442\u0441\u044f.<br \/>  \u0414\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u0447\u0438\u0445 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u00ab\u043a\u043b\u044e\u0447 = \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00bb <i>(\u0438 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043f\u0430\u0440\u043e\u0439 \u043e\u043f\u0446\u0438\u0439 \u043f\u043e\u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u0442\u0438\u043f\u0430 = [\u043a\u0430\u043a\u043e\u0433\u043e, \u0442\u043e, \u043c\u0430\u0441\u0441\u0438\u0432\u0430])<\/i> \u043f\u043e\u043b\u0430\u0433\u0430\u044e <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u044b\u043c.<\/b>                         <\/p>\n<div class=\"spoiler_text\">\u0427\u0442\u043e \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u043e, \u0443 \u0441\u0430\u043c\u043e\u0433\u043e <a href=\"https:\/\/github.com\/ds-voix\/VX-PBX\/tree\/master\/VX\" rel=\"nofollow\">\u00ab\u043f\u043e\u0434\u0433\u043e\u0440\u0435\u043b\u043e\u00bb<\/a> \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f (\u0432 \u0440\u0430\u0439\u043e\u043d\u0435 2013 \u0433\u043e\u0434\u0430). \u0422\u043e\u043b\u044c\u043a\u043e, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043c\u0435\u043d\u044f, \u0430\u0432\u0442\u043e\u0440 TOML \u0437\u0430\u0448\u0451\u043b \u0441 \u0434\u043e\u043b\u0436\u043d\u044b\u043c \u0440\u0430\u0437\u043c\u0430\u0445\u043e\u043c.<br \/>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u043d\u0435 \u043f\u0440\u043e\u0449\u0435 \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0435\u0433\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e\u0434 \u0441\u0435\u0431\u044f, \u0430 \u043d\u0435 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442.  <\/div>\n<\/p><\/div>\n<p>  \u0412 \u043e\u0431\u0449\u0435\u043c, \u0431\u0435\u0440\u0451\u043c TOML (\u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u0439 \u043d\u0430 \u0441\u0442\u0430\u0440\u044b\u0439 \u0432\u0438\u043d\u0434\u043e\u0432\u044b\u0439 INI). \u0418 \u0441\u0442\u043e\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u043a \u043f\u0440\u0438\u0446\u0435\u043f\u0438\u0442\u044c \u0441\u0435\u0440\u0438\u044e \u0445\u0443\u043a\u043e\u0432 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043d\u0430\u0431\u043e\u0440\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0441\u043a\u0435\u043d-\u043a\u043e\u0434\u043e\u0432 \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b. \u041d\u0438\u0436\u0435 \u043f\u043e \u043a\u0443\u0441\u043a\u0430\u043c \u2014 \u0442\u043e \u0447\u0442\u043e \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c. \u0418 \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u0447\u0435\u0433\u043e \u044d\u0442\u043e \u044f \u0442\u0430\u043a \u0440\u0435\u0448\u0438\u043b.<\/p>\n<h3>0. \u0411\u0430\u0437\u043e\u0432\u044b\u0435 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438<\/h3>\n<p>  <\/p>\n<ul>\n<li>\u041e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u043a\u0435\u043d-\u043a\u043e\u0434\u043e\u0432. \u0421 \u044d\u0442\u0438\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0434\u043e \u0447\u0442\u043e-\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0435 \u043a\u043e\u0434\u044b \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043d\u0435 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e-\u0447\u0438\u0442\u0430\u0435\u043c\u044b (\u044d\u0442\u043e \u044f \u0432 \u043e\u0433\u043e\u0440\u043e\u0434 <a href=\"https:\/\/github.com\/xintrea\/LoLoSwitcher\" rel=\"nofollow\">loloswitcher<\/a>).<br \/>  \u0412\u044b\u0442\u0440\u044f\u0441 \u00abecodes.go\u00bb \u0438\u0437 \u00abgolang-evdev\u00bb (\u0432 \u043f\u0435\u0440\u0432\u043e\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043b\u0435\u0437\u0442\u044c \u043f\u043e\u043b\u0435\u043d\u0438\u043b\u0441\u044f, \u0445\u043e\u0442\u044f \u0443 \u0430\u0432\u0442\u043e\u0440\u0430 \u043e\u043d \u0432\u043f\u043e\u043b\u043d\u0435 \u043a\u0443\u043b\u044c\u0442\u0443\u0440\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u043d). \u041d\u0435\u043c\u043d\u043e\u0436\u043a\u043e (\u043f\u043e\u043a\u0430) \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u043b \u0441\u043e\u0432\u0441\u0435\u043c \u0443\u0436 \u0441\u0442\u0440\u0430\u0445\u043e\u043b\u044e\u0434\u043d\u043e\u0435. \u0422\u0438\u043f\u0430 \u00abLEFTBRACE\u00bb \u2192 \u00abL_BRACE\u00bb.<\/li>\n<li>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u0432\u0451\u043b \u043f\u043e\u043d\u044f\u0442\u0438\u0435 \u00ab\u043a\u043b\u0430\u0432\u0438\u0448 \u0441 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c\u00bb. \u0422\u0430\u043a \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u0430\u044f \u0433\u0440\u0430\u043c\u043c\u0430\u0442\u0438\u043a\u0430 \u043d\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442 \u043a \u0434\u043b\u0438\u043d\u043d\u044b\u043c \u043f\u0430\u0441\u0441\u0430\u0436\u0430\u043c. <i>(\u0417\u0430\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043d\u0430\u043a\u043b\u0430\u0434\u043a\u0430\u043c\u0438. \u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u00ab\u043f\u0440\u044f\u043c\u0443\u044e\u00bb \u0437\u0430\u043f\u0438\u0441\u044c.)<\/i><\/li>\n<li>\u0411\u0443\u0434\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u00ab\u0434\u0435\u0434\u0443\u043f\u043b\u0438\u043a\u0430\u0442\u043e\u0440\u00bb \u043d\u0430\u0436\u0430\u0442\u043e\u0433\u043e. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u00ab\u043f\u043e\u0432\u0442\u043e\u0440\u00bb=2 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e <b>\u043e\u0434\u0438\u043d<\/b> \u0440\u0430\u0437.<\/li>\n<\/ul>\n<p>  <\/p>\n<h3>1. \u0420\u0430\u0437\u0434\u0435\u043b \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432<\/h3>\n<p>  <\/p>\n<pre><code class=\"bash\">[Templates] # &quot;@name@&quot; to simplify expressions  # Words can consist of these chars (regex)  &quot;WORD&quot; = &quot;([0-9A-Z`;']|[LR]_BRACE|COMMA|DOT|SLASH|KP[0-9])&quot; <\/code><\/pre>\n<p>  \u0418\u0437 \u0447\u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0441\u043b\u043e\u0432\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u0441 \u0444\u043e\u043d\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u044c\u044e <i>(\u0442\u043e \u043b\u0438 \u0434\u0435\u043b\u043e \u0433\u0440\u0430\u0444\u0435\u043c\u044b aka \u00ab\u0438\u0435\u0440\u043e\u0433\u043b\u0438\u0444\u044b\u00bb)<\/i>? \u041a\u0430\u043a\u0430\u044f-\u0442\u043e \u0443\u0436\u0430\u0441\u043d\u0430\u044f \u00ab\u043f\u0440\u043e\u0441\u0442\u044b\u043d\u044f\u00bb. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e \u043f\u043e\u043d\u044f\u0442\u0438\u0435 \u00ab\u0448\u0430\u0431\u043b\u043e\u043d\u0430\u00bb.  <\/p>\n<h3>2. \u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u0447\u0442\u043e-\u0442\u043e \u043d\u0430\u0436\u0430\u043b\u0438 (\u043f\u0440\u0438\u0448\u0451\u043b \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0441\u043a\u0435\u043d-\u043a\u043e\u0434)<\/h3>\n<p>  <\/p>\n<pre><code class=\"bash\">[ActionKeys]  # Collect key and do the test for command sequence  # !!! Repeat codes (code=2) must be collected once per key!  Add = [&quot;1..0&quot;, &quot;=&quot;, &quot;BS&quot;, &quot;Q..]&quot;, &quot;L_CTRL..CAPS&quot;, &quot;N_LOCK&quot;, &quot;S_LOCK&quot;,         &quot;KP7..KPDOT&quot;, &quot;R_CTRL&quot;, &quot;KPSLASH&quot;, &quot;R_ALT&quot;, &quot;KPEQUAL..PAUSE&quot;,         &quot;KPCOMMA&quot;, &quot;L_META..COMPOSE&quot;, &quot;KPLEFTPAREN&quot;, &quot;KPRIGHTPAREN&quot;]   # Drop all collected keys, including this.  This is default action.  Drop = [&quot;ESC&quot;, &quot;-&quot;, &quot;TAB&quot;, &quot;ENTER&quot;, &quot;KPENTER&quot;, &quot;LINEFEED..POWER&quot;]  # Store extra map for these keys, when any is in &quot;down&quot; state.  # State is checked via &quot;OFF:&quot;|&quot;ON:&quot; conditions in action.  # (Also, state of these keys must persist between buffer drops.)  # ??? How to deal with CAPS and &quot;LOCK&quot;-keys ???  StateKeys = [&quot;L_CTRL&quot;, &quot;L_SHIFT&quot;, &quot;L_ALT&quot;, &quot;L_META&quot;, &quot;CAPS&quot;, &quot;N_LOCK&quot;, &quot;S_LOCK&quot;,               &quot;R_CTRL&quot;, &quot;R_SHIFT&quot;, &quot;R_ALT&quot;, &quot;R_META&quot;]   # Test only, but don't collect.  # E.g., I use F12 instead of BREAK on dumb laptops whith shitty keyboards (new ThinkPads)  Test = [&quot;F1..F10&quot;, &quot;ZENKAKUHANKAKU&quot;, &quot;102ND&quot;, &quot;F11&quot;, &quot;F12&quot;,           &quot;RO..KPJPCOMMA&quot;, &quot;SYSRQ&quot;, &quot;SCALE&quot;, &quot;HANGEUL..YEN&quot;,           &quot;STOP..SCROLLDOWN&quot;, &quot;NEW..MAX&quot;] <\/code><\/pre>\n<p>  \u0412\u0441\u0435\u0433\u043e \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e 768 \u043a\u043e\u0434\u043e\u0432. <i>(\u041d\u043e \u00ab\u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439\u00bb \u0432\u0441\u0442\u0430\u0432\u0438\u043b \u0432 \u043a\u043e\u0434 \u0445switcher \u043e\u0442\u043b\u043e\u0432 \u00ab\u0441\u044e\u0440\u043f\u0440\u0438\u0437\u043e\u0432\u00bb).<\/i><br \/>  \u0412\u043d\u0443\u0442\u0440\u0438 \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043b \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438 \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u00ab\u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c\u00bb. \u041d\u0430 golang \u044d\u0442\u043e <i>(\u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e)<\/i> \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0443\u0434\u043e\u0431\u043d\u043e \u0438 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e.  <\/p>\n<ul>\n<li>\u00abDrop\u00bb \u0432 \u044d\u0442\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u0434\u043e \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u0430. \u0412 \u043f\u043e\u043b\u044c\u0437\u0443 \u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043a\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 (\u043f\u043e\u043a\u0430\u0436\u0443 \u043d\u0438\u0436\u0435).<\/li>\n<\/ul>\n<p>  <\/p>\n<h3>3. \u0422\u0430\u0431\u043b\u0438\u0447\u043a\u0430 \u0441 \u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438 \u043e\u043a\u043e\u043d<\/h3>\n<p>  <\/p>\n<pre><code class=\"bash\"># Some behaviour can depend on application currently doing the input. [[WindowClasses]]  # VNC, VirtualBox, qemu etc. emulates there input independently, so never intercept.  # With the exception of some stupid VNC clients, which does high-level (layout-based) keyboard input.  Regex = &quot;^VirtualBox&quot;  Actions = &quot;&quot; # Do nothing while focus stays in VirtualBox  [[WindowClasses]]  Regex = &quot;^konsole&quot;  # In general, mouse clicks leads to unpredictable (at the low-level where xswitcher resides) cursor jumps.  # So, it's good choise to drop all buffers after click.  # But some windows, e.g. terminals, can stay out of this problem.  MouseClickDrops = 0  Actions = &quot;Actions&quot;  [[WindowClasses]] # Default behaviour: no Regex (or wildcard like &quot;.&quot;)  MouseClickDrops = 1  Actions = &quot;Actions&quot; <\/code><\/pre>\n<p>  \u0421\u0442\u0440\u043e\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u2014 \u0432 \u0434\u0432\u043e\u0439\u043d\u044b\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043a\u0430\u0445 \u0441 \u0435\u0451 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c. <i>\u041f\u0440\u043e\u0449\u0435 \u0441 \u0445\u043e\u0434\u0443 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c.<\/i> \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u043e\u043a\u043d\u0430, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u043e\u043f\u0446\u0438\u0438:  <\/p>\n<ul>\n<li>\u0421\u0432\u043e\u0439 \u043d\u0430\u0431\u043e\u0440 \u00ab\u0433\u043e\u0440\u044f\u0447\u0438\u0445 \u043a\u043b\u0430\u0432\u0438\u0448\u00bb \u00abActions = \u2026\u00bb. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442\/\u043f\u0443\u0441\u0442\u043e \u2014 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c.<\/li>\n<li>\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c \u00abMouseClickDrops\u00bb \u2014 \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0438 \u043a\u043b\u0438\u043a\u0430 \u043c\u044b\u0448\u043a\u043e\u0439. \u0422\u0430\u043a \u043a\u0430\u043a \u0432 \u0442\u043e\u0447\u043a\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f xswitcher \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439 \u00ab\u043a\u0443\u0434\u0430 \u0442\u0430\u043c \u0449\u0451\u043b\u043a\u0430\u044e\u0442\u00bb, \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u0431\u0443\u0444\u0435\u0440. \u041d\u043e \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430\u0445 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440) \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a \u0438 \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c <i>(\u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e)<\/i>.<\/li>\n<\/ul>\n<p>  <\/p>\n<h3>4. \u041e\u0434\u043d\u0430 (\u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e) \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0435\u0439 \u043d\u0430\u0436\u0430\u0442\u0438\u0439 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u0442\u043e\u0442 \u0438\u043b\u0438 \u0438\u043d\u043e\u0439 \u0445\u0443\u043a<\/h3>\n<p>  <\/p>\n<pre><code class=\"bash\"># action = [ regex1, regex2, ... ] # &quot;CLEAN&quot; state: all keys are released [Actions] # Inverse regex is hard to understand, so extract negation to external condition. # Expresions will be checked in direct order, one-by-one. Condition succceds when ALL results are True.  # Maximum key sequence length, extra keys will be dropped. More length - more CPU.  SeqLength = 8  # Drop word buffer and start collecting new one  NewWord = [ &quot;OFF:(CTRL|ALT|META)  SEQ:(((BACK)?SPACE|[LR]_SHIFT):[01],)*(@WORD@:1)&quot;, # &quot;@WORD@:0&quot; then collects the char              &quot;SEQ:(@WORD@:2,@WORD@:0)&quot;, # Drop repeated char at all: unlikely it needs correction              &quot;SEQ:((KP)?MINUS|(KP)?ENTER|ESC|TAB)&quot; ] # Be more flexible: chars line &quot;-&quot; can start new word, but must not completelly invalidate buffer!  # Drop all buffers  NewSentence = [ &quot;SEQ:(ENTER:0)&quot; ]   # Single char must be deleted by single BS, so there is need in compose sequence detector.  Compose = [ &quot;OFF:(CTRL|L_ALT|META|SHIFT)  SEQ:(R_ALT:1,(R_ALT:2,)?(,@WORD@:1,@WORD@:0){2},R_ALT:0)&quot; ]   &quot;Action.RetypeWord&quot; = [ &quot;OFF:(CTRL|ALT|META|SHIFT)  SEQ:(PAUSE:0)&quot; ]  &quot;Action.CyclicSwitch&quot; = [ &quot;OFF:(R_CTRL|ALT|META|SHIFT)  SEQ:(L_CTRL:1,L_CTRL:0)&quot; ] # Single short LEFT CONTROL  &quot;Action.Respawn&quot; = [ &quot;OFF:(CTRL|ALT|META|SHIFT)  SEQ:(S_LOCK:2,S_LOCK:0)&quot; ] # Long-pressed SCROLL LOCK   &quot;Action.Layout0&quot; = [ &quot;OFF:(CTRL|ALT|META|R_SHIFT)  SEQ:(L_SHIFT:1,L_SHIFT:0)&quot; ] # Single short LEFT SHIFT  &quot;Action.Layout1&quot; = [ &quot;OFF:(CTRL|ALT|META|L_SHIFT)  SEQ:(R_SHIFT:1,R_SHIFT:0)&quot; ] # Single short RIGHT SHIFT   &quot;Action.Hook1&quot; = [ &quot;OFF:(CTRL|R_ALT|META|SHIFT)  SEQ:(L_ALT:1,L_ALT:0)&quot; ] <\/code><\/pre>\n<p>  \u0425\u0443\u043a\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043b \u043d\u0430 \u0434\u0432\u0430 \u0442\u0438\u043f\u0430. \u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435, \u0441 \u00ab\u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0438\u043c\u0438\u00bb \u0438\u043c\u0435\u043d\u0430\u043c\u0438 (NewWord, NewSentence, Compose) \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0435\u043c\u044b\u0435.<br \/>  \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0441 \u00abAction.\u00bb. <i>\u0422.\u043a. TOML v1.4, \u0438\u043c\u0435\u043d\u0430 \u0441 \u0442\u043e\u0447\u043a\u0430\u043c\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u0445.<\/i><br \/>  \u041d\u0438\u0436\u0435 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d \u0440\u0430\u0437\u0434\u0435\u043b <b>\u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c<\/b>.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u0437\u0440\u044b\u0432\u0430\u0442\u044c \u043b\u044e\u0434\u044f\u043c \u043c\u043e\u0437\u0433 \u00ab\u0433\u043e\u043b\u044b\u043c\u0438\u00bb \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0430\u043c\u0438 (\u043f\u043e \u043e\u043f\u044b\u0442\u0443, \u0438\u0445 <i>\u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c<\/i>-\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u0435\u0441\u044f\u0442\u0438 <i>\u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u043e\u0432<\/i>), \u0441\u0440\u0430\u0437\u0443 \u0432\u043d\u0435\u0434\u0440\u044f\u044e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441.  <\/p>\n<ul>\n<li><b>\u00abOFF:\u00bb (\u0438\u043b\u0438 \u00abON:\u00bb)<\/b> \u043f\u0435\u0440\u0435\u0434 regexp (\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c) \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u0447\u0442\u043e\u0431\u044b \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043b\u0435\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u0431\u044b\u043b\u0438 \u043e\u0442\u043f\u0443\u0449\u0435\u043d\u044b (\u0438\u043b\u0438 \u043d\u0430\u0436\u0430\u0442\u044b).<br \/>  \u0414\u0430\u043b\u044c\u0448\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u00ab\u043d\u0435\u0447\u0435\u0441\u0442\u043d\u043e\u0435\u00bb \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435. \u0421 \u0440\u0430\u0437\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u043a\u0443\u0441\u043a\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u043f\u0430\u0439\u043f\u0430\u043c\u0438 &quot;|&quot;. \u0421 \u0446\u0435\u043b\u044c\u044e \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432\u0438\u0434\u0430 &quot;[LR]_SHIFT&quot; (\u0442\u0430\u043c \u0433\u0434\u0435 \u044d\u0442\u043e \u044f\u0432\u043d\u043e \u043d\u0435 \u043d\u0430\u0434\u043e).<\/li>\n<li><b>\u00abSEQ:\u00bb<\/b> \u0415\u0441\u043b\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e (\u0438\u043b\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u00ab\u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e\u00bb \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u0417\u0430 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u044b\u043b\u0430\u044e <s>\u043d\u0430^W<\/s>\u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u00abregexp\u00bb. <i>\u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0441\u0430\u043c \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0435 \u0443\u0434\u043e\u0441\u0443\u0436\u0438\u043b\u0441\u044f \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 \u043c\u043e\u0438\u043c\u0438 \u043b\u044e\u0431\u0438\u043c\u044b\u043c\u0438 pcre (\u00abperl compatible\u00bb).<\/i><\/li>\n<li>\u0412\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 <b>\u00ab\u041a\u041d\u041e\u041f\u041a\u0410_1: \u041a\u041e\u04141, \u041a\u041d\u041e\u041f\u041a\u0410_2: \u041a\u041e\u04142\u00bb<\/b> \u0438 \u0442.\u0434., \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u0441\u043a\u0435\u043d-\u043a\u043e\u0434\u043e\u0432.<\/li>\n<li><b>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u00ab\u043f\u0440\u0438\u0436\u0438\u043c\u0430\u0435\u0442\u0441\u044f\u00bb \u043a \u043a\u043e\u043d\u0446\u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438<\/b>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 &quot;$&quot; \u0432 \u0445\u0432\u043e\u0441\u0442 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043d\u0435 \u043d\u0430\u0434\u043e.<\/li>\n<li><b>\u0412\u0441\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0434\u0440\u0443\u0433 \u0437\u0430 \u0434\u0440\u0443\u0433\u043e\u043c<\/b> \u0438 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u043f\u043e \u00ab\u0418\u00bb. \u041d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u0432\u0438\u0434\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443. <i>\u0415\u0441\u043b\u0438 \u044d\u0442\u043e \u0437\u0430\u0447\u0435\u043c-\u0442\u043e \u043d\u0443\u0436\u043d\u043e.<\/i><\/li>\n<li>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>\u00abSeqLength = 8\u00bb<\/b> \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u0443\u0444\u0435\u0440\u0430, \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0432\u0441\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438. <i>\u0422.\u043a. \u0432 \u0436\u0438\u0437\u043d\u0438 \u043c\u043d\u0435 (\u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440) \u043d\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b\u0438\u0441\u044c \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b.<\/i><\/li>\n<\/ul>\n<p>  <\/p>\n<h3>5. \u0417\u0430\u0434\u0430\u043d\u0438\u0435 \u0445\u0443\u043a\u043e\u0432, \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0435\u043a\u0446\u0438\u0438<\/h3>\n<p>  <\/p>\n<pre><code class=\"bash\"># Action is the array, so actions could be chained (m.b., infinitely... Have I to check this?). # For each action type, extra named parameters could be collected. Invalid parameters will be ignored(?). [Action.RetypeWord] # Switch layout, drop last word and type it again  Action = [ &quot;Action.CyclicSwitch&quot;, &quot;RetypeWord&quot; ] # Call Switch() between layouts tuned below, then RetypeWord()  [Action.CyclicSwitch] # Cyclic layout switching  Action = [ &quot;Switch&quot; ] # Internal layout switcher func  Layouts = [0, 1]  [Action.Layout0] # Direct layout selection  Action = [ &quot;Layout&quot; ] # Internal layout selection func  Layout = 0  [Action.Layout1] # Direct layout selection  Action = [ &quot;Layout&quot; ] # Internal layout selection func  Layout = 1  [Action.Respawn] # Completely respawn xswitcher. Reload config as well  Action = [ &quot;Respawn&quot; ]  [Action.Hook1] # Run external commands   Action = [ &quot;Exec&quot; ]   Exec = &quot;\/path\/to\/exec -a -b --key_x&quot;   Wait = 1   SendBuffer = &quot;Word&quot; # External hook can process collected buffer by it's own means. <\/code><\/pre>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u0442\u0443\u0442 \u2014 <b>\u00abAction = [\u041c\u0430\u0441\u0441\u0438\u0432]\u00bb<\/b>. \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0435\u043a\u0446\u0438\u0438, \u0435\u0441\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439. \u0418 \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u0430\u044f \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0442\u044b\u043a\u043e\u0432\u043a\u0438 <i>(\u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u00abAction.XXX\u00bb \u0438 \u043d\u0435 \u043f\u043e\u043b\u0435\u043d\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u0434 \u043d\u0435\u0433\u043e \u0435\u0449\u0451 \u043e\u0434\u043d\u0443 \u0441\u0435\u043a\u0446\u0438\u044e)<\/i>.<br \/>  \u0412 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435, \u043f\u0435\u0440\u0435\u043d\u0430\u0431\u043e\u0440 \u0441\u043b\u043e\u0432\u0430 \u0432 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u043a\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0432\u0435 \u0447\u0430\u0441\u0442\u0438: <i>\u00ab\u043f\u043e\u043c\u0435\u043d\u044f\u0439 \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u043a\u0443 \u043a\u0430\u043a \u0432\u043e\u043d \u0442\u0430\u043c \u0437\u0430\u0434\u0430\u043d\u043e\u00bb<\/i> \u0438 <i>\u00ab\u043f\u0435\u0440\u0435\u043d\u0430\u0431\u0435\u0440\u0438\u00bb (\u00abRetypeWord\u00bb)<\/i>.<br \/>  \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u00ab\u0441\u043b\u043e\u0432\u0430\u0440\u044c\u00bb <i>(\u00abmap\u00bb \u0432 golang)<\/i> \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0438\u0445 \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0432 \u00abAction\u00bb.<br \/>  \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043e\u0434\u043d\u043e\u0439 \u043a\u0443\u0447\u0435 <i>(\u0441\u0435\u043a\u0446\u0438\u0438)<\/i>. \u0410 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0442\u0430\u0449\u0438\u0442\u044c. \u041a\u0430\u043a \u044f \u0432\u044b\u0448\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b.<br \/>  \u0421\u0440\u0430\u0437\u0443 \u0437\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u00abExec\u00bb \u2014 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439. \u0421 \u043e\u043f\u0446\u0438\u0435\u0439 \u0437\u0430\u0442\u043e\u043b\u043a\u0430\u0442\u044c \u0435\u043c\u0443 \u0432 stdin \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0431\u0443\u0444\u0435\u0440.  <\/p>\n<ul>\n<li>\u00abWait = 1\u00bb \u2014 \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430.<\/li>\n<li>\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u00ab\u0434\u043e \u043a\u0443\u0447\u0438\u00bb \u0437\u0430\u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0434\u043e\u043f. \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0442\u0438\u043f\u0430 \u0438\u043c\u0435\u043d\u0438 \u043a\u043b\u0430\u0441\u0441\u0430 \u043e\u043a\u043d\u0430 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0447\u0435\u043d\u043e.<br \/>  <i>\u00ab\u0425\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a? \u0412\u0430\u043c \u0432\u043e\u0442 \u0441\u044e\u0434\u0430.\u00bb<\/i><\/li>\n<\/ul>\n<p>  \u0423\u0444 (\u0432\u044b\u0434\u043e\u0445\u043d\u0443\u043b). \u0412\u0440\u043e\u0434\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u043b.  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u043f! \u0410\u0433\u0430, \u043d\u0435 \u0437\u0430\u0431\u044b\u043b\u2026<\/b>                         <\/p>\n<div class=\"spoiler_text\">\u0410 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0433\u0434\u0435? \u0412 \u0445\u0430\u0440\u0434-\u043a\u043e\u0434\u0435\u0301? \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"bash\">[ScanDevices]  # Must exist on start. Self-respawn in case it is younger then 30s  Test = &quot;\/dev\/input\/event0&quot;  Respawn = 30  # Search mask  Search = &quot;\/dev\/input\/event*&quot;  # In my thinkPads there are such a pseudo-keyboards whith tons of unnecessary events  Bypass = &quot;(?i)Video|Camera&quot; # &quot;(?i)&quot; obviously differs from &quot;classic&quot; pcre's. <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  \u0410 \u0433\u0434\u0435 \u0437\u0430\u0431\u044b\u043b\/\u043e\u0448\u0438\u0431\u0441\u044f <i>(\u0431\u0435\u0437 \u044d\u0442\u043e\u0433\u043e \u2014 \u043d\u0438\u043a\u0430\u043a)<\/i>, \u043e\u0447\u0435\u043d\u044c \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u0447\u0442\u043e \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438 \u043d\u0435 \u043f\u043e\u043b\u0435\u043d\u044f\u0442\u0441\u044f \u0442\u043a\u043d\u0443\u0442\u044c \u043d\u043e\u0441\u043e\u043c.<br \/>  \u0423\u0434\u0430\u0447\u0438!<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/499560\/\"> https:\/\/habr.com\/ru\/post\/499560\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/499560\/\">\u0422\u0430\u043a \u043a\u0430\u043a <a href=\"https:\/\/habr.com\/ru\/post\/495748\/\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f<\/a> (\u0445switcher \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u0438 \u00abproof of concept\u00bb) \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043e\u0442\u0437\u044b\u0432\u043e\u0432 <i>(\u0447\u0442\u043e \u043f\u0440\u0438\u044f\u0442\u043d\u043e)<\/i>, \u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043b \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u0451 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. <i>\u0422\u0435\u043f\u0435\u0440\u044c \u0445\u043e\u0447\u0443 \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0436\u043a\u043e \u0432\u0430\u0448\u0435\u0433\u043e\u2026<\/i> \u0412\u0442\u043e\u0440\u043e\u0439 \u0448\u0430\u0433 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0439: \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435\/\u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ld\/it\/ri\/lditri2811ilg7kt2fxabhlvxzs.jpeg\">  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-302694","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/302694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=302694"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/302694\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=302694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=302694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=302694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}