{"id":118182,"date":"2024-01-23T10:21:53","date_gmt":"2024-01-23T01:21:53","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=118182"},"modified":"2024-01-23T10:21:53","modified_gmt":"2024-01-23T01:21:53","slug":"rubywm","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/rubywm\/","title":{"rendered":"Pure Ruby\u3067\u66f8\u304b\u308c\u305fX11\u30a6\u30a3\u30f3\u30c9\u30a6\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u300cRubyWM\u300d\u304c\u7206\u8a95"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2024\/01\/2024-01-11_20-04.jpg\" alt=\"2024 01 11 20 04\" title=\"2024-01-11_20-04.jpg\" border=\"0\" width=\"1280\" height=\"721\" \/><\/p>\n<p>\u5168\u3066\u304cRuby\u3067\u66f8\u304b\u308c\u305fX11\u30a6\u30a3\u30f3\u30c9\u30a6\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u300cRubyWM\u300d\u304c<a href=\"https:\/\/github.com\/vidarh\/rubywm\/tree\/master\">GitHub<\/a>\u306b\u3066\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f5c\u8005\u306eVidar Hokstad\u6c0f\u306f\u3001RubyVM\u306f\u5b9f\u9a13\u7684\u306a\u90e8\u5206\u304c\u591a\u304f\u3001\u5404\u7a2e\u306e\u4e0d\u5177\u5408\u304c\u767a\u751f\u3057\u305f\u308a\u3001\u30af\u30e9\u30c3\u30b7\u30e5\u3057\u305f\u308a\u3059\u308b\u53ef\u80fd\u6027\u306f\u3042\u308b\u3082\u306e\u306e\u3001\u81ea\u5206\u306f\u30d5\u30eb\u30bf\u30a4\u30e0\u3067\u5229\u7528\u3057\u3066\u3044\u308b\u3068\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>RubyWM\u306f\u3001\u73fe\u57281K\u884c\u672a\u6e80\u306e\u7d14\u7c8b\u306aRuby\u3067\u66f8\u304b\u308c\u305fX11\u30a6\u30a3\u30f3\u30c9\u30a6\u30de\u30cd\u30fc\u30b8\u30e3(X11\u30c9\u30e9\u30a4\u30d0\u30fc\u3092\u542b\u3080)\u3067\u3001\u30bf\u30a4\u30ea\u30f3\u30b0\u306b\u91cd\u70b9\u3092\u7f6e\u3044\u3066\u3044\u308b\u3082\u306e\u306e\u3001\u7279\u5b9a\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306b\u30bf\u30a4\u30ea\u30f3\u30b0\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u3082\u3001\u30d5\u30ed\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u307e\u307e\u306b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u73fe\u5728\u306e\u3068\u3053\u308d\u3001\u30bf\u30a4\u30ea\u30f3\u30b0\u3084\u30d5\u30ed\u30fc\u30c6\u30a3\u30f3\u30b0\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f7f\u3046\u304b\u3069\u3046\u304b\u306b\u95a2\u308f\u3089\u305a\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u88c5\u98fe\u306f\u306a\u304f\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u306f\u30c9\u30e9\u30c3\u30b0\u3067\u304d\u305a\u3001\u5883\u754c\u7dda\u3092\u5f15\u3063\u5f35\u3063\u3066\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u306a\u3044\u3068\u306e\u3053\u3068(\u30ea\u30b5\u30a4\u30ba\u306fWindows\u30ad\u30fc\uff0b\u30de\u30a6\u30b9\u306e\u5de6\/\u53f3\u30dc\u30bf\u30f3\u3067\u53ef\u80fd)\u3002<\/p>\n<p>\u30a6\u30a3\u30f3\u30c9\u30a6\u30de\u30cd\u30fc\u30b8\u30e3\u30fc<a href=\"https:\/\/wiki.archlinux.jp\/index.php\/Bspwm\">bspwm<\/a>\u306e\u4e0d\u6e80\u70b9\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u958b\u767a\u3055\u308c\u3001bspwm\u3068\u540c\u3058\u304f\u30ad\u30fc\u30dc\u30fc\u30c9\u64cd\u4f5c\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093\u3002bspwm\u306e\u3088\u3046\u306b\u5c02\u7528\u306eIPC\u30e1\u30ab\u30cb\u30ba\u30e0\u3092\u642d\u8f09\u3057\u3066\u3044\u306a\u3044\u304b\u308f\u308a\u306b\u3001\u3059\u3079\u3066\u306e\u901a\u4fe1\u306fX11 ClientMessage\u30a4\u30d9\u30f3\u30c8\u7d4c\u7531\u3067\u884c\u308f\u308c\u3001xdotool\u306a\u3069\u306e\u30c4\u30fc\u30eb\u306b\u3088\u3063\u3066WM\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f5c\u8005\u306e\u74b0\u5883\u304c\u30b7\u30f3\u30b0\u30eb\u30e2\u30cb\u30bf\u30fc\u74b0\u5883\u306a\u306e\u3067\u3001\u30de\u30eb\u30c1\u30e2\u30cb\u30bf\u30fc\u95a2\u9023\u306e\u6a5f\u80fd\u3082\u642d\u8f09\u3057\u3066\u3044\u306a\u3044\u305d\u3046\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2024\/01\/2024-01-11_19-45.jpg\" alt=\"2024 01 11 19 45\" title=\"2024-01-11_19-45.jpg\" border=\"0\" width=\"1280\" height=\"720\" \/><\/p>\n<p>RubyVM\u306f\u30ad\u30fc\u30d0\u30a4\u30f3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u5165\u529b\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b<a href=\"https:\/\/wiki.archlinux.jp\/index.php\/Sxhkd\">sxhkd<\/a>\u306a\u3069\u304c\u5fc5\u8981\u3067\u3001\u307e\u305fRuby\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3(3.2.2\u306a\u3069)\u304c\u5fc5\u8981\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3057\u307e\u3059\u3002<code>ruby rubywm.rb<\/code>\u3067\u8d77\u52d5\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002 <\/p>\n<pre>\n\n  (sxhkd 2>&1 | logger -t sxhkd) &\n  (cd ~\/Desktop\/Projects\/wm ; ruby rubywm.rb 2>&1 | logger -t rubywm) &\n  \n  while true do\n    wait\n    sleep 5\n  done\n\n<\/pre>\n<p>\u73fe\u6bb5\u968e\u3067\u306f\u304b\u306a\u308a\u7656\u304c\u5f37\u305d\u3046\u3067\u3001\u4f5c\u8005\u4ee5\u5916\u304c\u30c1\u30e3\u30ec\u30f3\u30b8\u3059\u308b\u306e\u306f\u96e3\u3057\u305d\u3046\u3067\u3059\u304c\u3001<a href=\"https:\/\/news.ycombinator.com\/item?id=39087609\">Hacker News<\/a>\u306b\u306f\u30c1\u30e3\u30ec\u30f3\u30b8\u7cbe\u795e\u3092\u79f0\u8cdb\u3059\u308b\u30b3\u30e1\u30f3\u30c8\u3084\u3001Perl\u3067\u66f8\u304b\u308c\u305f\u300c<a href=\"https:\/\/sourceforge.net\/projects\/perlwm\/\">Perl Window Manager<\/a>\u300d\u3082\u3042\u308b\u306a\u3069\u3001\u8ffd\u52a0\u306e\u60c5\u5831\u304c\u5bc4\u305b\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5168\u3066\u304cRuby\u3067\u66f8\u304b\u308c\u305fX11\u30a6\u30a3\u30f3\u30c9\u30a6\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u300cRubyWM\u300d\u304cGitHub\u306b\u3066\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u4f5c\u8005\u306eVidar Hokstad\u6c0f\u306f\u3001RubyVM\u306f\u5b9f\u9a13\u7684\u306a\u90e8\u5206\u304c\u591a\u304f\u3001\u5404\u7a2e\u306e\u4e0d\u5177\u5408\u304c\u767a\u751f\u3057\u305f\u308a\u3001\u30af\u30e9\u30c3\u30b7\u30e5\u3057\u305f\u308a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":118183,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[154],"class_list":["post-118182","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-ruby"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/118182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=118182"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/118182\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/118183"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=118182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=118182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=118182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}