I bought this simple ass little macropad that uses real keyboard switches and for like a year I had no idea how to use it. There was no dirt simple file configed little command I can plant in my i3/config and be happy with it so I built it!

It was my first attempt at building a production-level thing out of rust and I’m really happy with it. Now I can finally use my goddamn macropad!!

  • ExLisperA
    link
    fedilink
    arrow-up
    4
    ·
    2 days ago
       let config = match maybe_config {
            Some(c) => c,
            None => {
                panic!("didn't find config file");
            }
        };
    

    let config = maybe_config.expect("didn't find config file");

    :)

    I like the community idea. Hope to see more posts here.

    • danhab99@programming.devOPM
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      Yeah this was written before I knew too much about rust, the syntax can definitely be reworked I just need to find the time.