[{"data":1,"prerenderedAt":369},["ShallowReactive",2],{"project-24280413":3},{"id":4,"name":5,"line":5,"line_source":6,"title":7,"url":8,"domain":9,"maker":10,"posted_at":11,"year":12,"points":13,"comments":14,"rank_in_year":15,"shown_in_year":16,"top":17,"tier":18,"category":19,"subcategory":20,"format":21,"keywords":22,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":34,"aspects":35,"strip":39,"post_text":41,"what":42,"said":88,"maker_in_thread":171,"shape":179,"grid":184,"attempts":332,"same_week":333,"maker_shows":31,"maker_hidden":361,"reader_version":362,"card":363},"24280413","Vim-Like Layer for Xorg and Wayland","title","Show HN: Vim-Like Layer for Xorg and Wayland","https:\u002F\u002Fcedaei.com\u002Fposts\u002Fvim-like-layer-for-xorg-wayland\u002F","cedaei.com","ceda_ei",1598430863,2020,148,62,409,3028,14,"notable","dev_tools","keyboard remapping","other",[23,24,25,26,27],"vim keybindings","keyboard layer","xorg remapping","wayland keyboard","sway","curious",-0.118,{"positive":31,"neutral":32,"mixed":31,"critical":33},1,15,3,20,{"idea":36,"performance":37},{"positive":31,"critical":33},{"positive":38,"critical":38},0,[33,38,33,33,38,33,33,38,38,38,38,38,38,38,38,38,38,38,38,38,33,38,38,31,33,38,38,38,33,33,38,31,40,33,31,38,33,38,38,33],5,null,{"problem":43,"audience":59,"pricing":41,"motivation":41,"time_to_build":41,"stack":71,"openness":87,"stage":87,"team_size":87},{"value":44,"source":45,"evidence":46},"Lets users reach vim-style navigation keys in any application via a keyboard mode","inferred",[47,51,55],{"id":48,"by":49,"text":50},"24291339","codethief","I've been thinking about doing something like this for quite a while. One question that's been bothering me is: How will I know what mode I'm in? Can I somehow change the cursor…",{"id":52,"by":53,"text":54},"24290634","Ianvdl","As someone who uses Vim daily, I quite like this idea. I would customise it to mimic the original Vim bindings a bit more closely where possible though, to e.g. keep Ctrl-D as…",{"id":56,"by":57,"text":58},"24290841","seqizz","Good idea. This could be also useful for assigning custom functionality instead of vim (e.g. window management). Also one can switch backlights\u002Fkeyboard colors depending of the…",{"value":60,"source":45,"evidence":61},"Vim users on Linux using X or Wayland window managers such as i3 or sway",[62,63,67],{"id":52,"by":53,"text":54},{"id":64,"by":65,"text":66},"24296909","jolmg","They're using sway\u002Fi3. I don't understand why they're doing it like that when sway\u002Fi3 already has support for modes. They could have just done something like this in the sway\u002Fi3…",{"id":68,"by":69,"text":70},"24294700","fock","sadly wayland means only sway. I've done some remapping as well, but don't know how to make Gnome in wayland mode (which is nice on a cramped notebook and someone has to test…",[72,77],{"value":27,"source":73,"evidence":74},"commenter",[75,76],{"id":64,"by":65,"text":66},{"id":68,"by":69,"text":70},{"value":78,"source":79,"evidence":80},"xdotool","maker",[81,84],{"id":82,"by":10,"text":83},"24290826","> e.g. keep Ctrl-D as page down. I tried doing the same using xdotool by binding Ctrl+F\u003Csomething> to PageDown but for some reason it didn't work for some reason and I didn't…",{"id":85,"by":10,"text":86},"24291001","I am the OP. What I tried was something along these lines. e.g. to get w in normal mode to send Ctrl+right, I did the following. 1. Bind w to F14 in normal mode. 2. In i3 config,…","unknown",{"praise":89,"objections":95,"requests":111,"questions":120,"alternatives":139},[90],{"value":91,"source":73,"evidence":92},"Good idea, useful for custom bindings beyond vim navigation",[93,94],{"id":56,"by":57,"text":58},{"id":52,"by":53,"text":54},[96,100],{"value":97,"source":73,"evidence":98},"i3 and sway already support binding modes, so the approach is redundant",[99],{"id":64,"by":65,"text":66},{"value":101,"source":73,"evidence":102},"QMK hardware layers do the same job more reliably",[103,107],{"id":104,"by":105,"text":106},"24292678","kohlerm","Get a keyboard with layer support, https:\u002F\u002Fdocs.qmk.fm\u002F. No need for different modes ...",{"id":108,"by":109,"text":110},"24290717","dlkmp","I've done a similar thing at the hardware level using a QMK layer. The main benefit for me is being able to use VIM movement keys in every text input. As I'm using a dual boot…",[112,116],{"value":113,"source":73,"evidence":114},"Per-application bindings and preserving Vim keys like Ctrl-D",[115],{"id":52,"by":53,"text":54},{"value":117,"source":73,"evidence":118},"Mode indicator in the status bar",[119],{"id":48,"by":49,"text":50},[121,125,132],{"value":122,"source":73,"evidence":123},"How do you know which mode you are in?",[124],{"id":48,"by":49,"text":50},{"value":126,"source":73,"evidence":127},"Does it get confusing when using Vim itself?",[128],{"id":129,"by":130,"text":131},"24293019","Timpy","Does this get confusing when you're actually using Vim? Do you ever use Keyboard Normal Mode when you're in Vim?",{"value":133,"source":73,"evidence":134},"Concrete usage examples or demo?",[135],{"id":136,"by":137,"text":138},"24291450","ggm","Some concrete examples of using it? Did I miss the demo showing some good exemplary behaviour driven by this?",[140,147,152,160],{"value":141,"source":73,"evidence":142},"Interception Tools",[143],{"id":144,"by":145,"text":146},"24291105","renke1","I am also using a custom keyboard layout (basically the movement layer from the NEO layout + left alt → left ctrl, right alt → left alt, caps lock → esc). Initially it was…",{"value":148,"source":73,"evidence":149},"QMK firmware",[150,151],{"id":108,"by":109,"text":110},{"id":104,"by":105,"text":106},{"value":153,"source":73,"evidence":154},"i3 binding modes",[155,156],{"id":64,"by":65,"text":66},{"id":157,"by":158,"text":159},"24290971","secure","The NEO keyboard layout (https:\u002F\u002Fneo-layout.org\u002F) which I’m using for over a decade, has a similar concept of a number of additional layers. This is quite handy for having a…",{"value":161,"source":73,"evidence":162},"xcape and xkb remapping",[163,167],{"id":164,"by":165,"text":166},"24294466","simias","I did the same thing on my Ergodox with QMK, only with emacs\u002Freadline bindings. control-M for enter, control-A for beginning of line, control-E for end of line, control-N for…",{"id":168,"by":169,"text":170},"24293001","npmisdown","I'm fan of heavy key mapping customization to boost productivity. The most productive remapping so far which I made is to globally remap (via xkb) Left Alt + HJKL to respective…",{"comments":40,"answered":172,"key":173},2,[174,175,176],{"id":82,"text":83},{"id":85,"text":86},{"id":177,"text":178},"24291461","In my case, the interval is set to 0.5 which has a slight delay but enough for me to not mind. I usually have a mental idea of what mode I am in at all times. > Can I somehow…",{"commenters":180,"max_depth":181,"maker_replies":40,"first_comment_mins":182,"lifespan_hours":183},36,7,1305,150,[185,187,190,193,197,199,201,203,205,207,209,210,213,215,217,219,222,225,228,230,233,235,238,241,243,245,247,249,252,255,258,260,264,266,267,270,271,273,276,277,281,282,283,285,287,288,291,294,296,297,301,304,308,312,314,316,318,319,321,324,326,329],[144,38,33,186,145,38],"project\u002Fneutral\u002Fidea",[188,38,38,189,49,38],"24291307","other\u002Fneutral\u002Fnone",[191,38,38,189,192,38],"24291340","lejboua",[194,38,33,195,196,38],"24292899","project\u002Fneutral\u002Fnone","Fnoord",[198,38,33,186,145,38],"24293045",[200,38,33,195,196,38],"24319493",[202,38,38,189,196,38],"24342117",[204,38,38,189,145,38],"24293509",[206,38,33,195,69,38],"24294735",[208,38,33,195,145,38],"24295088",[108,31,38,189,109,38],[211,31,38,189,212,38],"24290876","modalkb",[214,31,38,189,53,38],"24290922",[216,31,38,189,158,38],"24290975",[218,31,38,189,53,38],"24290998",[220,31,38,189,221,38],"24291032","rfoo",[223,31,38,189,224,38],"24341919","Coolsies",[226,31,38,189,227,38],"24291092","least",[229,31,38,189,53,38],"24291192",[231,31,38,189,232,38],"24291374","samatman",[234,31,38,189,109,38],"24292047",[236,31,38,189,237,38],"24291117","SuperPaintMan",[239,31,38,189,240,38],"24291917","Legogris",[242,31,38,189,237,38],"24292317",[244,31,38,189,240,38],"24292686",[246,31,38,189,237,38],"24293106",[248,31,38,189,240,38],"24293376",[250,31,38,189,251,38],"24293633","linsomniac",[253,31,38,189,254,38],"24295600","l_t",[256,31,38,189,257,38],"24296596","1MachineElf",[259,31,38,189,254,38],"24298770",[261,31,33,262,263,38],"24291365","maker\u002Fneutral\u002Fnone","cassepipe",[265,31,38,189,240,38],"24291902",[164,31,38,189,165,38],[268,31,38,189,269,38],"24295753","ohazi",[157,172,38,189,158,38],[64,33,31,272,65,38],"project\u002Fcritical\u002Fidea",[52,274,33,275,53,38],4,"project\u002Fmixed\u002Fidea",[82,274,38,195,10,31],[278,274,38,279,280,38],"24290906","commenter\u002Fneutral\u002Fnone","addcninblue",[85,274,38,195,10,31],[168,40,38,189,169,38],[284,40,38,189,196,38],"24293044",[48,286,33,186,49,38],6,[177,286,38,186,10,31],[289,286,33,290,49,38],"24295942","maker\u002Fneutral\u002Fperformance",[292,286,38,189,293,38],"24295246","discreteevent",[295,286,38,189,49,38],"24295921",[104,181,31,272,105,38],[298,299,33,186,300,38],"24291710",8,"rlkf",[56,302,40,303,57,38],9,"project\u002Fpositive\u002Fidea",[305,306,33,195,307,38],"24291305",10,"sieste",[309,310,31,272,311,38],"24291655",11,"geocar",[129,313,33,195,130,38],12,[315,313,38,195,10,31],"24293431",[68,317,33,195,69,38],13,[136,17,33,195,137,38],[320,32,38,189,212,38],"24290871",[322,32,38,189,323,38],"24291030","mgraczyk",[325,32,38,189,10,31],"24291050",[327,32,38,279,328,38],"24291224","vladvasiliu",[330,32,33,186,331,38],"24291484","lymitshn",[],[334,339,343,348,352,356],{"id":335,"name":336,"points":337,"category":338},"24286335","ztext.js",257,"languages",{"id":340,"name":341,"points":342,"category":19},"24249646","rust_cmd_lib",231,{"id":344,"name":345,"points":346,"category":347},"24258098","ultimate-go",185,"learning_science",{"id":349,"name":350,"points":351,"category":19},"24221708","Analysis Tools",175,{"id":353,"name":354,"points":355,"category":19},"24269609","Will It CORS?",152,{"id":357,"name":358,"points":359,"category":360},"24240680","ePaper.js",145,"hardware",false,"v2",{"id":364,"name":5,"line":5,"ai":361,"cat":19,"year":12,"points":13,"comments":14,"rec":28,"s":365,"top":17,"kw":366,"maker":10,"domain":9,"tier":18,"attempts":38,"strip":367,"url":8,"mix":368,"praise":91,"objection":97,"sub":20},24280413,-0.12,[23,24,25,26,27],"3033033000000000000030013000330153103003",[31,32,31,33],1793991015185]