{"id":987,"date":"2018-08-04T11:21:52","date_gmt":"2018-08-04T02:21:52","guid":{"rendered":"https:\/\/www.ish.org\/blog\/?p=987"},"modified":"2018-08-04T11:22:46","modified_gmt":"2018-08-04T02:22:46","slug":"devilspie","status":"publish","type":"post","link":"https:\/\/www.ish.org\/blog\/?p=987","title":{"rendered":"devilspie"},"content":{"rendered":"<p>ip camera\u306e\u6620\u50cf\u3092\u898b\u308b\u969b\u306b\u8d77\u52d5\u3059\u308bvlc\u304cgeometry\u6307\u5b9a\u3092\u7121\u8996\u3059\u308b\u306e\u3067\u3001devilspie\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<!--more--><br \/>\n<code># pkg install devilspie<\/code><br \/>\n\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u3001<br \/>\n<code>% mkdir ~\/.devilspie<br \/>\n% cd ~\/.devilspie<br \/>\n% vi hoge.ds<br \/>\n\u3067\u8a2d\u5b9a\u3092\u8a18\u8ff0\u3057\u305f\u5f8c\u306b<br \/>\n% devilspie &<\/code><br \/>\n\u306e\u3088\u3046\u306b\u8d70\u3089\u305b\u3066\u304a\u3051\u3070OK\u3067\u3059\u3002\u5f53\u521d\u3001hoge.ds\u3092<br \/>\n<code>(if<br \/>\n\u3000(is (application_name) \"vlc\")<br \/>\n\u3000(geometry \"+0+0\")<br \/>\n)<\/code><br \/>\n\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u3082\u5168\u7136\u671f\u5f85\u3057\u305f\u52d5\u4f5c\u306b\u306a\u3089\u306a\u3044\u306e\u3067\u56f0\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u30011\u884c\u76ee\u306b(debug)\u3092\u8ffd\u52a0\u3057\u3066\u307f\u305f\u6240\u3001<code><br \/>\n...(\u7701\u7565)... Application Name: 'rtsp:\/\/xxx.xxx.xxx.xxx:xxx\/xx - VLC media player'; Class: 'vlc'; ...(\u7701\u7565\uff09...<\/code><br \/>\n\u3068\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d\u304c\u5168\u7136\u9055\u3046\u306e\u304c\u539f\u56e0\u3060\u3068\u5224\u308a\u307e\u3057\u305f\u3002\u305d\u3053\u3067\u3001<code><br \/>\n(if<br \/>\n\u3000(is (application_name) \"rtsp:\/\/xxx.xxx.xxx.xxx:xxx\/xx - VLC media player\")<br \/>\n\u3000(geometry \"+0+0\")<br \/>\n)<\/code><br \/>\n\u3068\u4fee\u6b63\u3057\u305f\u3089\u3061\u3083\u3093\u3068\u52d5\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3000\u3082\u3061\u308d\u3093<code><br \/>\n(if<br \/>\n\u3000(is (window_class) \"vlc\")<br \/>\n\u3000(geometry \"+0+0\")<br \/>\n)<\/code><br \/>\n\u3067\u3082\u5927\u4e08\u592b\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ip camera\u306e\u6620\u50cf\u3092\u898b\u308b\u969b\u306b\u8d77\u52d5\u3059\u308bvlc\u304cgeometry\u6307\u5b9a\u3092\u7121\u8996\u3059\u308b\u306e\u3067\u3001devilspie\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-987","post","type-post","status-publish","format-standard","hentry","category-freebsd"],"_links":{"self":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=987"}],"version-history":[{"count":4,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/987\/revisions"}],"predecessor-version":[{"id":991,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/987\/revisions\/991"}],"wp:attachment":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}