{"id":487747,"date":"2026-07-18T16:14:02","date_gmt":"2026-07-18T16:14:02","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=487747"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=487747","title":{"rendered":"\u041d\u0435\u00a0\u043e\u0442\u0434\u0430\u043c Gpick! \u041e\u043d\u00a0\u0445\u043e\u0440\u043e\u0448\u0438\u0439! \u041d\u043e\u00a0\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u043f\u0435\u0434\u0430\u043b\u0438 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f\u2026"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0423\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u0432\u0435\u0441\u044c\u043c\u0430 \u043e\u0433\u043e\u0440\u0447\u0430\u044e\u0441\u044c \u0442\u0435\u043c, \u0447\u0442\u043e \u0432\u00a0\u043c\u043e\u0451\u043c \u043b\u044e\u0431\u0438\u043c\u043e\u043c Gpick \u043e\u0442\u0432\u0430\u043b\u0438\u043b\u0430\u0441\u044c \u043f\u0438\u043f\u0435\u0442\u043a\u0430 \u0441\u00a0\u0442\u0435\u0445 \u043f\u043e\u0440, \u043a\u0430\u043a KDE \u0441\u043e \u0441\u0432\u043e\u0435\u0439 \u041f\u043b\u0430\u0437\u043c\u043e\u0439 \u043f\u0440\u043e\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u043b\u0438 \u043d\u0430\u00a0Wayland. \u0415\u0441\u043b\u0438 \u0440\u0430\u043d\u044c\u0448\u0435 \u044f\u00a0\u0435\u0449\u0451 \u043c\u0438\u0440\u0438\u043b\u0441\u044f \u0441\u00a0GTK-\u0448\u043d\u043e\u0441\u0442\u044c\u044e Gpick (\u043f\u0440\u043e\u00a0KDE, \u043f\u043b\u0430\u0437\u043c\u0443 \u0438\u00a0\u0432\u044f\u043b\u0435\u043d\u043e\u0433\u043e\u00a0\u2014 \u043f\u043e\u0440\u0443\u0447\u0438\u043a, \u043c\u043e\u043b\u0447\u0430\u0442\u044c!), \u0442\u043e\u00a0\u0442\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0432\u0441\u0435\u043c \u0432\u0437\u0433\u0440\u0443\u0441\u0442\u043d\u0443\u043b\u043e\u0441\u044c\u2026<\/p>\n<p>\u041d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0451 \u0441\u00a0\u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u044f \u043d\u0430\u043f\u0440\u043e\u0447\u044c \u0437\u0430\u0431\u044b\u043b, \u043a\u0430\u043a\u0438\u0435 \u0443\u00a0\u043c\u0435\u043d\u044f \u0432\u00a0\u00ab<a href=\"https:\/\/habr.com\/ru\/articles\/1009226\/\" rel=\"noopener noreferrer nofollow\">\u041c\u0435\u0441\u0442\u0430\u0445<\/a>\u00bb \u0446\u0432\u0435\u0442\u0430 \u043a\u0430\u043a\u0438\u0435. \u042f\u00a0\u0436\u0435 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439, \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u0438\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432\u0435\u0434\u044c \u043d\u0435\u00a0\u043f\u0443\u0442\u044c \u0434\u0436\u0435\u0434\u0430\u044f, \u0432\u0435\u0440\u043d\u043e? \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u043d\u0430\u00a0\u0441\u0432\u043e\u0451<\/p>\n<pre><code>@mixin theme {    $color-01: rgba($col-36, $opacity-07);    $color-02: rgba($col-36, $opacity-11);    $color-03: rgba($col-36, $opacity-13);    $color-04: rgba($col-36, $opacity-12);\u2026<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>(\u0438\u00a0\u0435\u0449\u0451 \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0430\u00a0\u043f\u0430\u0440\u0443 \u0441\u043e\u0442\u0435\u043d \u0441\u0442\u0440\u043e\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u00a0\u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435), \u044f \u043f\u0440\u043e\u0441\u043b\u0435\u0437\u0438\u043b\u0441\u044f, \u0443\u0434\u0430\u0440\u0438\u043b \u0441\u0442\u0435\u043d\u0443 \u0433\u043e\u043b\u043e\u0432\u043e\u0439 \u0438\u00a0\u0440\u0435\u0448\u0438\u043b \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043a\u00a0\u043b\u0443\u0447\u0448\u0435\u043c\u0443. \u0417\u0430\u043e\u0434\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430\u00a0\u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u044b\u0435 CSS-\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u0430 \u043d\u0435\u00a0\u044d\u0442\u043e\u0442 SCSS-\u0445\u0430\u0440\u0434\u043a\u043e\u0440. \u041d\u043e\u00a0\u0432\u043e\u0442 \u0431\u0435\u0437\u00a0\u043f\u0438\u043f\u0435\u0442\u043a\u0438 \u044d\u0442\u043e \u0433\u0440\u0443\u0441\u0442\u043d\u043e\u0432\u0430\u0442\u043e\u2026<\/p>\n<p>\u0418\u0442\u0430\u043a, \u043d\u0443\u0436\u043d\u0430, \u043f\u0440\u043e\u0441\u0442\u0438 \u0413\u043e\u0441\u043f\u043e\u0434\u0438, \u043f\u0438\u043f\u0435\u0442\u043a\u0430. \u0421\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u00a0\u0442\u0435\u0440\u043f\u0435\u0442\u044c \u0435\u0449\u0451 \u0438\u00a0\u0448\u0442\u0430\u0442\u043d\u044b\u0439 <code>kcolorpicker<\/code>, \u0430\u00a0\u0443\u0436 \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435, <code>kcolorchooser<\/code> (\u043f\u0440\u0438 \u0436\u0438\u0432\u043e\u043c-\u0442\u043e, \u043d\u0443, \u043f\u043e\u0447\u0442\u0438, Gpick) \u0432 \u0441\u0432\u043e\u0451\u043c \u0443\u044e\u0442\u043d\u043e\u043c Artix \u044f\u00a0\u043d\u0435\u00a0\u043d\u0430\u043c\u0435\u0440\u0435\u043d. \u041b\u0430\u0434\u043d\u043e \u043f\u0440\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u044f \u043c\u043e\u043b\u0447\u0443, \u0432\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u00a0KDE-\u0448\u043d\u044b\u0445 \u043f\u043e\u0434\u0435\u043b\u0438\u0439 \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u043e\u00a0\u0434\u0432\u0435 \u0448\u0442\u0443\u043a\u0438\u00a0\u2014 \u00ab\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0438\u043a\u043e\u043d\u043a\u0443 \u0441\u043f\u0440\u0430\u0432\u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u043b\u0435\u0432\u0430\u00bb \u0438\u00a0\u00ab\u0420\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0430\u043d\u0435\u043a\u0434\u043e\u0442\u044b \u0440\u0430\u0437 \u0432\u00a0\u0447\u0430\u0441 \u0432\u043c\u0435\u0441\u0442\u043e \u0440\u0430\u0437\u0430 \u0432\u00a0\u043f\u043e\u043b\u0447\u0430\u0441\u0430\u00bb. \u041d\u043e\u00a0\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u2026 \u041d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0435\u0442\u0443, \u0430\u00a0\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430\u00a0\u043f\u043e\u043b\u0433\u0438\u0433\u0430.<\/p>\n<p><code>hyprpicker<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u043a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u00a0\u043f\u043e\u044f\u0441\u043d\u044f\u043b\u043a\u0435, <code>does not suck<\/code>, \u043d\u0435\u00a0\u043f\u0440\u043e\u0441\u0442\u043e <code>wlroots-compatible<\/code>. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0442\u043e \u044f\u00a0\u0441\u0435\u0439\u0447\u0430\u0441 \u00abwlroots-incompatible\u00bb. \u0427\u0442\u043e \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f? \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. \u0412\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u0438\u0442\u044c.<\/p>\n<p>\u0421\u0442\u0430\u043b \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0434\u0443\u043c\u0430\u0442\u044c \u043c\u043e\u0437\u0433\u043e\u043c. \u0423\u0434\u0430\u0440\u0438\u043b\u0441\u044f \u0431\u044b\u043b\u043e \u0432 bash-\u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u043d\u043e\u00a0\u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u0430\u043c \u0441\u00a0DBus,\u00a0\u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u0440\u0442\u0430\u043b\u043e\u0432 \u0438\u00a0\u043f\u0440\u043e\u0447\u0438\u043c\u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0430\u043c\u0438 \u0441\u0442\u0430\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u043d\u043e.<\/p>\n<p>\u0421\u0443\u043d\u0443\u043b\u0441\u044f \u0431\u044b\u043b\u043e \u043d\u0430\u0431\u0440\u043e\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u043a\u0443 \u043d\u0430\u00a0C++\/Qt (\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043e\u0431\u043e\u0440\u043e\u0442 \u0437\u0432\u0443\u0447\u0438\u0442, \u043f\u0440\u0430\u0432\u0434\u0430?\u00a0\ud83d\ude01)\u00a0\u2014 \u0441\u0442\u0430\u043b\u043e \u0435\u0449\u0451 \u0431\u043e\u043b\u044c\u043d\u0435\u0435. \u041d\u0443, \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u00a0\u0434\u0432\u0435\u0440\u044c \u0432\u0440\u0435\u0437\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0437\u0430\u043c\u043e\u043a, \u043d\u0430\u043c \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u043e\u043a\u0440\u0443\u0433 \u043d\u0435\u0451 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u0438\u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043d\u044b\u0439 \u043c\u0435\u0433\u0430\u043f\u043e\u043b\u0438\u0441 \u0441\u00a0\u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439, \u0430\u044d\u0440\u043e\u043f\u043e\u0440\u0442\u043e\u043c, \u043f\u043e\u043b\u0438\u0446\u0438\u0435\u0439 \u0438\u00a0\u0442\u0440\u0430\u043c\u0432\u0430\u0439\u043d\u043e\u0439 \u0441\u0435\u0442\u044c\u044e. \u041d\u0435\u00a0\u0433\u043e\u0432\u043e\u0440\u044f \u0443\u0436\u0435 \u043e\u00a0\u0437\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u044f\u0445 \u0441\u00a0\u043f\u0440\u0435\u0444\u0435\u0440\u0430\u043d\u0441\u043e\u043c \u0438\u00a0\u0431\u0430\u0440\u044b\u0448\u043d\u044f\u043c\u0438\u2026<\/p>\n<p>\u041a\u043e\u0440\u043e\u0447\u0435, \u043f\u043b\u044e\u043d\u0443\u043b \u0438\u00a0\u043d\u0430\u0432\u0430\u044f\u043b \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430\u00a0\u041f\u0438\u0442\u043e\u043d\u0435 (\u0445\u043e\u0442\u044c \u044f\u00a0\u0435\u0433\u043e \u0438\u00a0\u0442\u0435\u0440\u043f\u0435\u0442\u044c \u043d\u0435\u00a0\u043c\u043e\u0433\u0443). \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0438\u043c\u0445\u043e, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e. \u041f\u0440\u0438\u00a0\u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0434\u0430\u0451\u0442 \u0442\u0435\u0431\u0435 \u043f\u0438\u043f\u0435\u0442\u043a\u0443, \u0436\u0434\u0451\u0442, \u043f\u043e\u043a\u0430 \u0436\u043c\u0430\u043a\u043d\u0435\u0448\u044c \u0435\u0439 \u0433\u0434\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0430\u00a0\u044d\u043a\u0440\u0430\u043d\u0435, \u0438\u00a0\u0432\u044b\u0434\u0430\u0451\u0442 \u043d\u0430\u00a0\u0432\u044b\u0445\u043e\u0434 \u0441\u0440\u0430\u0437\u0443 \u043f\u0430\u0447\u043a\u0443 CSS-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043d\u0430\u00a0\u043b\u044e\u0431\u043e\u0439 \u0432\u043a\u0443\u0441 \u0432\u00a0\u0442\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435:<\/p>\n<pre><code class=\"bash\">HEX: \u00a0#7e80ea  HSL: \u00a0hsl(238 72% 70%)  RGBb: rgb(126 128 234)  RGBp: rgb(49.4% 50.2% 91.8%)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0443\u0442 \u0442\u0435\u0431\u0435 \u0438\u00a0RGB, \u0445\u043e\u0442\u044c \u0432\u00a0HEX, \u0445\u043e\u0442\u044c \u0432\u00a0\u0447\u0438\u0441\u043b\u0430\u0445 \u0431\u0430\u0439\u0442\u0430, \u0445\u043e\u0442\u044c \u0432\u00a0\u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445, \u0438\u00a0HSL. \u0410\u00a0\u0435\u0436\u0435\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0435\u0449\u0451 \u0438\u00a0\u0441\u00a0\u043a\u043b\u044e\u0447\u0438\u043a\u043e\u043c <code>-c<\/code> \u0438\u043b\u0438 <code>--copy<\/code>, \u0442\u043e\u00a0\u0437\u0430\u043e\u0434\u043d\u043e \u0438\u00a0\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0435 HEX-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u00a0\u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430. \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0432\u0435\u0441\u0438\u0442\u044c \u043d\u0430\u00a0\u0445\u043e\u0442\u043a\u0435\u0439 \u0445\u043e\u0442\u044c \u0433\u043e\u043b\u044b\u043c, \u0445\u043e\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c shell-\u0442\u0440\u0443\u0431\u0443 \u0441\u00a0\u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u0430\u0440\u0441\u0435\u0440\u043e\u043c. \u041a\u0440\u0430\u0441\u043e\u0442\u0430!\u00a0\ud83d\ude01<\/p>\n<p>\u0412\u00a0\u043e\u0431\u0449\u0435\u043c, \u0434\u0435\u043b\u044e\u0441\u044c \u0441\u00a0\u0433\u043e\u0440\u043e\u0434\u043e\u043c \u0438\u00a0\u043c\u0438\u0440\u043e\u043c. \u041c\u043e\u0436\u0435\u0442, \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u00a0\u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u043d\u0435\u0440\u0432\u044b \u0438\u00a0\u0432\u0440\u0435\u043c\u044f:<\/p>\n<pre><code class=\"python\">#!\/usr\/bin\/env python3import sysimport colorsysimport subprocessimport argparsefrom gi.repository import GLib, Gioparser = argparse.ArgumentParser(    description=\"Wayland XDG-Portal Color Picker\")parser.add_argument(    \"-c\", \"--copy\",     action=\"store_true\",    help=\"Also, copy the HEX value to the clipboard\")args = parser.parse_args()loop = GLib.MainLoop()channels = Nonebus = Gio.bus_get_sync(Gio.BusType.SESSION, None)def on_signal_received(    connection,    sender_name,    object_path,    interface_name,    signal_name,    parameters,    user_data):    global channels    try:        code, results = parameters.unpack()        if code == 0 and 'color' in results:            channels = results['color']    except Exception as e:        sys.stderr.write(f\"Signal error: {e}\\n\")    finally:        loop.quit()def on_method_reply(connection, res):    try:        reply = connection.call_finish(res)        request_path = reply.unpack()[0]                bus.signal_subscribe(            \"org.freedesktop.portal.Desktop\",            \"org.freedesktop.portal.Request\",            \"Response\",            request_path,            None,            Gio.DBusSignalFlags.NONE,            on_signal_received,            None        )    except Exception as e:        sys.stderr.write(f\"Method error: {e}\\n\")        loop.quit()bus.call(    \"org.freedesktop.portal.Desktop\",    \"\/org\/freedesktop\/portal\/desktop\",    \"org.freedesktop.portal.Screenshot\",    \"PickColor\",    GLib.Variant(\"(sa{sv})\", (\"\", {})),    None,    Gio.DBusSignalFlags.NONE,    -1,    None,    on_method_reply)loop.run()if channels and len(channels) &gt;= 3:    r_f, g_f, b_f = channels[0], channels[1], channels[2]        r_b, g_b, b_b = int(r_f * 255), int(g_f * 255), int(b_f * 255)    hex_color = f\"#{r_b:02x}{g_b:02x}{b_b:02x}\"    r_p, g_p, b_p = r_f * 100, g_f * 100, b_f * 100    h_f, l_f, s_f = colorsys.rgb_to_hls(r_f, g_f, b_f)    h, s, l = int(h_f * 360), int(s_f * 100), int(l_f * 100)        print(f\"HEX:  {hex_color}\")    print(f\"HSL:  hsl({h} {s}% {l}%)\")    print(f\"RGBb: rgb({r_b} {g_b} {b_b})\")    print(f\"RGBp: rgb({r_p:.1f}% {g_p:.1f}% {b_p:.1f}%)\")        if args.copy:        try:            subprocess.run(                ['wl-copy', hex_color],                check=True,                stdout=subprocess.DEVNULL,                stderr=subprocess.DEVNULL            )        except Exception:            try:                p = subprocess.Popen(                    ['xclip', '-selection', 'clipboard'],                    stdin=subprocess.PIPE,                    stdout=subprocess.DEVNULL,                    stderr=subprocess.DEVNULL                )                p.communicate(input=hex_color.encode())            except Exception:                pass    sys.exit(0)else:    sys.stderr.write(\"Cancelled by the user.\\n\")    sys.exit(1)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0410\u00a0\u0435\u0441\u043b\u0438 \u043b\u0435\u043d\u0438\u0432\u043e \u043e\u0442\u0441\u044e\u0434\u0430 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0437\u0430\u043a\u043e\u043c\u043c\u0438\u0442\u0438\u043b \u0432\u00a0\u0441\u0432\u043e\u0451\u043c GitHub-\u043e\u0432\u0441\u043a\u043e\u043c <a href=\"https:\/\/github.com\/assador\/ds-utils\" rel=\"noopener noreferrer nofollow\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438<\/a> \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u043b\u0435\u0437\u043d\u044f\u0448\u0435\u043a: <a href=\"https:\/\/github.com\/assador\/ds-utils\/blob\/master\/ds-colorpicker\" rel=\"noopener noreferrer nofollow\">ds-colorpicker<\/a>.<\/p>\n<p>\u0412\u043e\u0442. \u041f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c, \u0438\u00a0\u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u043e\u0432 \u0431\u043e\u0433\u0443 \u0421\u041f\u041e!\u00a0\ud83d\ude01<\/p>\n<\/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\/articles\/1060500\/\">https:\/\/habr.com\/ru\/articles\/1060500\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0423\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u0432\u0435\u0441\u044c\u043c\u0430 \u043e\u0433\u043e\u0440\u0447\u0430\u044e\u0441\u044c \u0442\u0435\u043c, \u0447\u0442\u043e \u0432\u00a0\u043c\u043e\u0451\u043c \u043b\u044e\u0431\u0438\u043c\u043e\u043c Gpick \u043e\u0442\u0432\u0430\u043b\u0438\u043b\u0430\u0441\u044c \u043f\u0438\u043f\u0435\u0442\u043a\u0430 \u0441\u00a0\u0442\u0435\u0445 \u043f\u043e\u0440, \u043a\u0430\u043a KDE \u0441\u043e \u0441\u0432\u043e\u0435\u0439 \u041f\u043b\u0430\u0437\u043c\u043e\u0439 \u043f\u0440\u043e\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u043b\u0438 \u043d\u0430\u00a0Wayland. \u0415\u0441\u043b\u0438 \u0440\u0430\u043d\u044c\u0448\u0435 \u044f\u00a0\u0435\u0449\u0451 \u043c\u0438\u0440\u0438\u043b\u0441\u044f \u0441\u00a0GTK-\u0448\u043d\u043e\u0441\u0442\u044c\u044e Gpick (\u043f\u0440\u043e\u00a0KDE, \u043f\u043b\u0430\u0437\u043c\u0443 \u0438\u00a0\u0432\u044f\u043b\u0435\u043d\u043e\u0433\u043e\u00a0\u2014 \u043f\u043e\u0440\u0443\u0447\u0438\u043a, \u043c\u043e\u043b\u0447\u0430\u0442\u044c!), \u0442\u043e\u00a0\u0442\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0432\u0441\u0435\u043c \u0432\u0437\u0433\u0440\u0443\u0441\u0442\u043d\u0443\u043b\u043e\u0441\u044c\u2026\u041d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0451 \u0441\u00a0\u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u044f \u043d\u0430\u043f\u0440\u043e\u0447\u044c \u0437\u0430\u0431\u044b\u043b, \u043a\u0430\u043a\u0438\u0435 \u0443\u00a0\u043c\u0435\u043d\u044f \u0432\u00a0\u00ab\u041c\u0435\u0441\u0442\u0430\u0445\u00bb \u0446\u0432\u0435\u0442\u0430 \u043a\u0430\u043a\u0438\u0435. \u042f\u00a0\u0436\u0435 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439, \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u0438\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432\u0435\u0434\u044c \u043d\u0435\u00a0\u043f\u0443\u0442\u044c \u0434\u0436\u0435\u0434\u0430\u044f, \u0432\u0435\u0440\u043d\u043e? \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u043d\u0430\u00a0\u0441\u0432\u043e\u0451@mixin theme {    $color-01: rgba($col-36, $opacity-07);    $color-02: rgba($col-36, $opacity-11);    $color-03: rgba($col-36, $opacity-13);    $color-04: rgba($col-36, $opacity-12);\u2026(\u0438\u00a0\u0435\u0449\u0451 \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0430\u00a0\u043f\u0430\u0440\u0443 \u0441\u043e\u0442\u0435\u043d \u0441\u0442\u0440\u043e\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u00a0\u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435), \u044f \u043f\u0440\u043e\u0441\u043b\u0435\u0437\u0438\u043b\u0441\u044f, \u0443\u0434\u0430\u0440\u0438\u043b \u0441\u0442\u0435\u043d\u0443 \u0433\u043e\u043b\u043e\u0432\u043e\u0439 \u0438\u00a0\u0440\u0435\u0448\u0438\u043b \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043a\u00a0\u043b\u0443\u0447\u0448\u0435\u043c\u0443. \u0417\u0430\u043e\u0434\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430\u00a0\u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u044b\u0435 CSS-\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u0430 \u043d\u0435\u00a0\u044d\u0442\u043e\u0442 SCSS-\u0445\u0430\u0440\u0434\u043a\u043e\u0440. \u041d\u043e\u00a0\u0432\u043e\u0442 \u0431\u0435\u0437\u00a0\u043f\u0438\u043f\u0435\u0442\u043a\u0438 \u044d\u0442\u043e \u0433\u0440\u0443\u0441\u0442\u043d\u043e\u0432\u0430\u0442\u043e\u2026\u0418\u0442\u0430\u043a, \u043d\u0443\u0436\u043d\u0430, \u043f\u0440\u043e\u0441\u0442\u0438 \u0413\u043e\u0441\u043f\u043e\u0434\u0438, \u043f\u0438\u043f\u0435\u0442\u043a\u0430. \u0421\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u00a0\u0442\u0435\u0440\u043f\u0435\u0442\u044c \u0435\u0449\u0451 \u0438\u00a0\u0448\u0442\u0430\u0442\u043d\u044b\u0439 kcolorpicker, \u0430\u00a0\u0443\u0436 \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435, kcolorchooser (\u043f\u0440\u0438 \u0436\u0438\u0432\u043e\u043c-\u0442\u043e, \u043d\u0443, \u043f\u043e\u0447\u0442\u0438, Gpick) \u0432 \u0441\u0432\u043e\u0451\u043c \u0443\u044e\u0442\u043d\u043e\u043c Artix \u044f\u00a0\u043d\u0435\u00a0\u043d\u0430\u043c\u0435\u0440\u0435\u043d. \u041b\u0430\u0434\u043d\u043e \u043f\u0440\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u044f \u043c\u043e\u043b\u0447\u0443, \u0432\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u00a0KDE-\u0448\u043d\u044b\u0445 \u043f\u043e\u0434\u0435\u043b\u0438\u0439 \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u043e\u00a0\u0434\u0432\u0435 \u0448\u0442\u0443\u043a\u0438\u00a0\u2014 \u00ab\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0438\u043a\u043e\u043d\u043a\u0443 \u0441\u043f\u0440\u0430\u0432\u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u043b\u0435\u0432\u0430\u00bb \u0438\u00a0\u00ab\u0420\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0430\u043d\u0435\u043a\u0434\u043e\u0442\u044b \u0440\u0430\u0437 \u0432\u00a0\u0447\u0430\u0441 \u0432\u043c\u0435\u0441\u0442\u043e \u0440\u0430\u0437\u0430 \u0432\u00a0\u043f\u043e\u043b\u0447\u0430\u0441\u0430\u00bb. \u041d\u043e\u00a0\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u2026 \u041d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0435\u0442\u0443, \u0430\u00a0\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430\u00a0\u043f\u043e\u043b\u0433\u0438\u0433\u0430.hyprpicker, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u043a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u00a0\u043f\u043e\u044f\u0441\u043d\u044f\u043b\u043a\u0435, does not suck, \u043d\u0435\u00a0\u043f\u0440\u043e\u0441\u0442\u043e wlroots-compatible. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0442\u043e \u044f\u00a0\u0441\u0435\u0439\u0447\u0430\u0441 \u00abwlroots-incompatible\u00bb. \u0427\u0442\u043e \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f? \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. \u0412\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u0438\u0442\u044c.\u0421\u0442\u0430\u043b \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0434\u0443\u043c\u0430\u0442\u044c \u043c\u043e\u0437\u0433\u043e\u043c. \u0423\u0434\u0430\u0440\u0438\u043b\u0441\u044f \u0431\u044b\u043b\u043e \u0432 bash-\u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u043d\u043e\u00a0\u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u0430\u043c \u0441\u00a0DBus,\u00a0\u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u0440\u0442\u0430\u043b\u043e\u0432 \u0438\u00a0\u043f\u0440\u043e\u0447\u0438\u043c\u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0430\u043c\u0438 \u0441\u0442\u0430\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u043d\u043e.\u0421\u0443\u043d\u0443\u043b\u0441\u044f \u0431\u044b\u043b\u043e \u043d\u0430\u0431\u0440\u043e\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u043a\u0443 \u043d\u0430\u00a0C++\/Qt (\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043e\u0431\u043e\u0440\u043e\u0442 \u0437\u0432\u0443\u0447\u0438\u0442, \u043f\u0440\u0430\u0432\u0434\u0430?\u00a0\ud83d\ude01)\u00a0\u2014 \u0441\u0442\u0430\u043b\u043e \u0435\u0449\u0451 \u0431\u043e\u043b\u044c\u043d\u0435\u0435. \u041d\u0443, \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u00a0\u0434\u0432\u0435\u0440\u044c \u0432\u0440\u0435\u0437\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0437\u0430\u043c\u043e\u043a, \u043d\u0430\u043c \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u043e\u043a\u0440\u0443\u0433 \u043d\u0435\u0451 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u0438\u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043d\u044b\u0439 \u043c\u0435\u0433\u0430\u043f\u043e\u043b\u0438\u0441 \u0441\u00a0\u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439, \u0430\u044d\u0440\u043e\u043f\u043e\u0440\u0442\u043e\u043c, \u043f\u043e\u043b\u0438\u0446\u0438\u0435\u0439 \u0438\u00a0\u0442\u0440\u0430\u043c\u0432\u0430\u0439\u043d\u043e\u0439 \u0441\u0435\u0442\u044c\u044e. \u041d\u0435\u00a0\u0433\u043e\u0432\u043e\u0440\u044f \u0443\u0436\u0435 \u043e\u00a0\u0437\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u044f\u0445 \u0441\u00a0\u043f\u0440\u0435\u0444\u0435\u0440\u0430\u043d\u0441\u043e\u043c \u0438\u00a0\u0431\u0430\u0440\u044b\u0448\u043d\u044f\u043c\u0438\u2026\u041a\u043e\u0440\u043e\u0447\u0435, \u043f\u043b\u044e\u043d\u0443\u043b \u0438\u00a0\u043d\u0430\u0432\u0430\u044f\u043b \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430\u00a0\u041f\u0438\u0442\u043e\u043d\u0435 (\u0445\u043e\u0442\u044c \u044f\u00a0\u0435\u0433\u043e \u0438\u00a0\u0442\u0435\u0440\u043f\u0435\u0442\u044c \u043d\u0435\u00a0\u043c\u043e\u0433\u0443). \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0438\u043c\u0445\u043e, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e. \u041f\u0440\u0438\u00a0\u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0434\u0430\u0451\u0442 \u0442\u0435\u0431\u0435 \u043f\u0438\u043f\u0435\u0442\u043a\u0443, \u0436\u0434\u0451\u0442, \u043f\u043e\u043a\u0430 \u0436\u043c\u0430\u043a\u043d\u0435\u0448\u044c \u0435\u0439 \u0433\u0434\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0430\u00a0\u044d\u043a\u0440\u0430\u043d\u0435, \u0438\u00a0\u0432\u044b\u0434\u0430\u0451\u0442 \u043d\u0430\u00a0\u0432\u044b\u0445\u043e\u0434 \u0441\u0440\u0430\u0437\u0443 \u043f\u0430\u0447\u043a\u0443 CSS-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043d\u0430\u00a0\u043b\u044e\u0431\u043e\u0439 \u0432\u043a\u0443\u0441 \u0432\u00a0\u0442\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435:HEX: \u00a0#7e80ea  HSL: \u00a0hsl(238 72% 70%)  RGBb: rgb(126 128 234)  RGBp: rgb(49.4% 50.2% 91.8%)\u0422\u0443\u0442 \u0442\u0435\u0431\u0435 \u0438\u00a0RGB, \u0445\u043e\u0442\u044c \u0432\u00a0HEX, \u0445\u043e\u0442\u044c \u0432\u00a0\u0447\u0438\u0441\u043b\u0430\u0445 \u0431\u0430\u0439\u0442\u0430, \u0445\u043e\u0442\u044c \u0432\u00a0\u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445, \u0438\u00a0HSL. \u0410\u00a0\u0435\u0436\u0435\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0435\u0449\u0451 \u0438\u00a0\u0441\u00a0\u043a\u043b\u044e\u0447\u0438\u043a\u043e\u043c -c \u0438\u043b\u0438 &#8212;copy, \u0442\u043e\u00a0\u0437\u0430\u043e\u0434\u043d\u043e \u0438\u00a0\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0435 HEX-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u00a0\u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430. \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0432\u0435\u0441\u0438\u0442\u044c \u043d\u0430\u00a0\u0445\u043e\u0442\u043a\u0435\u0439 \u0445\u043e\u0442\u044c \u0433\u043e\u043b\u044b\u043c, \u0445\u043e\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c shell-\u0442\u0440\u0443\u0431\u0443 \u0441\u00a0\u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u0430\u0440\u0441\u0435\u0440\u043e\u043c. \u041a\u0440\u0430\u0441\u043e\u0442\u0430!\u00a0\ud83d\ude01\u0412\u00a0\u043e\u0431\u0449\u0435\u043c, \u0434\u0435\u043b\u044e\u0441\u044c \u0441\u00a0\u0433\u043e\u0440\u043e\u0434\u043e\u043c \u0438\u00a0\u043c\u0438\u0440\u043e\u043c. \u041c\u043e\u0436\u0435\u0442, \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u00a0\u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u043d\u0435\u0440\u0432\u044b \u0438\u00a0\u0432\u0440\u0435\u043c\u044f:#!\/usr\/bin\/env python3import sysimport colorsysimport subprocessimport argparsefrom gi.repository import GLib, Gioparser = argparse.ArgumentParser(    description=&#187;Wayland XDG-Portal Color Picker&#187;)parser.add_argument(    &#171;-c&#187;, &#171;&#8212;copy&#187;,     action=&#187;store_true&#187;,    help=&#187;Also, copy the HEX value to the clipboard&#187;)args = parser.parse_args()loop = GLib.MainLoop()channels = Nonebus = Gio.bus_get_sync(Gio.BusType.SESSION, None)def on_signal_received(    connection,    sender_name,    object_path,    interface_name,    signal_name,    parameters,    user_data):    global channels    try:        code, results = parameters.unpack()        if code == 0 and &#8216;color&#8217; in results:            channels = results[&#8216;color&#8217;]    except Exception as e:        sys.stderr.write(f&#187;Signal error: {e}\\n&#187;)    finally:        loop.quit()def on_method_reply(connection, res):    try:        reply = connection.call_finish(res)        request_path = reply.unpack()[0]                bus.signal_subscribe(            &#171;org.freedesktop.portal.Desktop&#187;,            &#171;org.freedesktop.portal.Request&#187;,            &#171;Response&#187;,            request_path,            None,            Gio.DBusSignalFlags.NONE,            on_signal_received,            None        )    except Exception as e:        sys.stderr.write(f&#187;Method error: {e}\\n&#187;)        loop.quit()bus.call(    &#171;org.freedesktop.portal.Desktop&#187;,    &#171;\/org\/freedesktop\/portal\/desktop&#187;,    &#171;org.freedesktop.portal.Screenshot&#187;,    &#171;PickColor&#187;,    GLib.Variant(&#171;(sa{sv})&#187;, (&#171;&#187;, {})),    None,    Gio.DBusSignalFlags.NONE,    -1,    None,    on_method_reply)loop.run()if channels and len(channels) &gt;= 3:    r_f, g_f, b_f = channels[0], channels[1], channels[2]        r_b, g_b, b_b = int(r_f * 255), int(g_f * 255), int(b_f * 255)    hex_color = f&#187;#{r_b:02x}{g_b:02x}{b_b:02x}&#187;    r_p, g_p, b_p = r_f * 100, g_f * 100, b_f * 100    h_f, l_f, s_f = colorsys.rgb_to_hls(r_f, g_f, b_f)    h, s, l = int(h_f * 360), int(s_f * 100), int(l_f * 100)        print(f&#187;HEX:  {hex_color}&#187;)    print(f&#187;HSL:  hsl({h} {s}% {l}%)&#187;)    print(f&#187;RGBb: rgb({r_b} {g_b} {b_b})&#187;)    print(f&#187;RGBp: rgb({r_p:.1f}% {g_p:.1f}% {b_p:.1f}%)&#187;)        if args.copy:        try:            subprocess.run(                [&#8216;wl-copy&#8217;, hex_color],                check=True,                stdout=subprocess.DEVNULL,                stderr=subprocess.DEVNULL            )        except Exception:            try:                p = subprocess.Popen(                    [&#8216;xclip&#8217;, &#8216;-selection&#8217;, &#8216;clipboard&#8217;],                    stdin=subprocess.PIPE,                    stdout=subprocess.DEVNULL,                    stderr=subprocess.DEVNULL                )                p.communicate(input=hex_color.encode())            except Exception:                pass    sys.exit(0)else:    sys.stderr.write(&#171;Cancelled by the user.\\n&#187;)    sys.exit(1)\u0410\u00a0\u0435\u0441\u043b\u0438 \u043b\u0435\u043d\u0438\u0432\u043e \u043e\u0442\u0441\u044e\u0434\u0430 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0437\u0430\u043a\u043e\u043c\u043c\u0438\u0442\u0438\u043b \u0432\u00a0\u0441\u0432\u043e\u0451\u043c GitHub-\u043e\u0432\u0441\u043a\u043e\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u043b\u0435\u0437\u043d\u044f\u0448\u0435\u043a: ds-colorpicker.\u0412\u043e\u0442. \u041f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c, \u0438\u00a0\u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u043e\u0432 \u0431\u043e\u0433\u0443 \u0421\u041f\u041e!\u00a0\ud83d\ude01\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1060500\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-487747","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/487747","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=487747"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/487747\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=487747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=487747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=487747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}