davidrevoy,
@davidrevoy@framapiaf.org avatar

:neko_cats_eye: Today I'm going to show you how I turned a cheap USB numeric keypad into a pad that I use for my digital painting shortcuts under GNU/Linux.
→ Tutorial: https://www.davidrevoy.com/article989/how-to-customise-a-usb-numeric-keypad-under-gnulinux

#Keypad #Linux #NailPolish
#diy #Krita #MastoArt

gee,
@gee@framapiaf.org avatar

@davidrevoy cooool, j'avais pas vu passer cet article 🙂

Moi j'utilise les touches les plus à droite de mon mini clavier MIDI (bon du coup je les ai pas décorées vu que ça me sert aussi de vrai clavier de piano, mais bon), avec un script qui map le signal MIDI vers une combinaison de touches reconnue dans Inkscape (annuler, changer d'outil, etc.).

cursedartist,

@davidrevoy Oh this is so cool! Can I ask you which pen you're using on that Thinkpad?

davidrevoy,
@davidrevoy@framapiaf.org avatar

@cursedartist Thanks! Sure, from the top of my brain, it's a Wacom Bamboo Ink Plus, I detail it on https://www.davidrevoy.com/article972/my-solution-for-mobile-digital-painting-on-gnu-linux . Their naming convention is a bit confusing, they have many products named bamboo, and ink , this one is the one that has a built-in battery you can charge with Usb-C.

bruno,

@davidrevoy that's so cool. I'm thinking about doing something like that for streaming

bluejorts,

@davidrevoy ohhhh, I'm gonna try this

phil,

@davidrevoy are there any good starting tutorials you recommend on a Linux-based drawing software/hardware stack? My partner draws and has been looking for a while.

davidrevoy,
@davidrevoy@framapiaf.org avatar

@phil Hey, check the video pinned on my profile, it's a project from A to Z detailed with Krita with a first part about the setup. For the hardware part, I document everything I can here: https://www.davidrevoy.com/index.php?tag/hardware
I wish good luck, patience (and a bit of necessary obstination) to make the switch! 🙂

yoyunix,

@davidrevoy One thing you could do to turn this into something more like a MacroPad is to bind your NumPad keys to shortcuts in a script for an AutoHotKey port for GNU/Linux (for example, AHK_X11 ( https://github.com/phil294/AHK_X11 ) is what I used, and should work for any X11-based distro). The NumPad keys don't get registered by anything other than the AHK interpreter, so you don't have to worry about them accidentally triggering some other action they were bound to.

davidrevoy,
@davidrevoy@framapiaf.org avatar

@yoyunix Thanks for sharing this tool!

But I think I found the ultimate tool for macro: the one I tested this morning https://github.com/sezanzeb/input-remapper thanks to the comment of Moini (and added it to the article, you probably saw it). It's X11/Wayland compatible, has a GUI , presets and can also do complex macro (even mixing keyboard and mouse click, or macro with 'wait' between actions so I can do combo of shortcut keys.

yoyunix,

@davidrevoy Oh! I didn’t see that, and it looks a lot simpler than my suggestion 😅.

davidrevoy,
@davidrevoy@framapiaf.org avatar

@yoyunix That was also my feeling when I tested it this morning after I spent a big time in the udev/hwdb documentation and tweaking :blobcat:

vertenote,

@davidrevoy
Super interessant. Je n'ai pas de pavé numérique sous la main mais bien un MakeyMakey. Votre tuto me permettra d'aller plus loin que la fonctionnalité remap qui y est intégrée.
Merci :-)

davidrevoy,
@davidrevoy@framapiaf.org avatar

@vertenote Je conaissais pas ce projet, c'est trop cool comme sensor. Merci pour le partage 🙂

dlb,
@dlb@mamot.fr avatar

@davidrevoy
Génial ! C'est tout ce qui manquait pour vraiment profiter du mode tablette du thinkpad.

Merci!

SigmaOne,

deleted_by_author

  • Loading...
  • davidrevoy,
    @davidrevoy@framapiaf.org avatar

    @SigmaOne Oh 😮 If you have access to a 3D printer, you'll make wonders with it.
    I just tested the setup with a https://www.8bitdo.com/zero2/ (it has a keyboard mode that evtest or input-remapper catches); because it is wireless and its size, it's a good mini remote command for shortcut. I think I'll paint mine this week-end. 😆

    OmegaPolice,
    @OmegaPolice@hachyderm.io avatar

    @davidrevoy This is great, nobody should have to buy Stream Decks and the like!

    I got myself a FaunchPad and a Butter Stick from gboards.ca a while back for similar purposes, but they seem to be down. :/ They offered some affordable small keyboards runnig QMK!

    hopesquara,

    @davidrevoy That's genius!

    davidrevoy,
    @davidrevoy@framapiaf.org avatar

    @hopesquara :blobcatheart:

    libresurf,
    @libresurf@pouet.chapril.org avatar

    @davidrevoy
    I like it !
    I want the same !

    davidrevoy,
    @davidrevoy@framapiaf.org avatar

    @libresurf 😊 Thanks!

    antonioserrata,

    @davidrevoy PERFECT!!! I need this! Super helpful! Thanks!

    davidrevoy,
    @davidrevoy@framapiaf.org avatar

    @antonioserrata 🙂 Thanks!

    Tomoko_Kuroki,

    @davidrevoy Nice, my coworkers are still amazed that I got my Wii UDraw tablet to work on the computer. Though that is more hardware hacks if anything.

    mhunt,

    @davidrevoy very nice!

    screambiogenesis,

    @davidrevoy Nice. Thanks for the evdev writeup (and FWIW, the package name in Arch-alikes is 'evtest' instead of 'evdev'). I knew that kind of thing was possible, but had never put in the time to figuring it out.

    And the paintjob is fun. I bet doing it that way actually helps burn the connection into your brain, too.

    davidrevoy,
    @davidrevoy@framapiaf.org avatar

    @screambiogenesis Thanks! And oh, I just had a check at my dnf history and the package is evtest too. That's a big typo, thanks for finding it, I'll fix now. 👍

    drazraeltod,
    @drazraeltod@chaos.social avatar

    @davidrevoy
    that is a nice idea…

    now I'm thinking about if it were possible to use a bluetooth one as a remote for #HomeAssistant

    😃

    davidrevoy,
    @davidrevoy@framapiaf.org avatar

    @drazraeltod Oh, let me know if you find info about this, this is interesting.

    davidrevoy,
    @davidrevoy@framapiaf.org avatar

    @drazraeltod Update! I had this bluetooth gamepad at home (a cute mini 8BitDo Zero 2 https://www.8bitdo.com/zero2/) and if I put it in keyboard mode; evtest catches the events and gives the product/vendor info (not listed in lsusb).
    I also got feedback about an utility 'input-remapper' that makes all of the setup easy with a GUI. So it should work with bluetooth keypad as well following the same method. I updated the article.

    omidmnz,

    @davidrevoy Maybe try KMonad or Kanata. They provide a lot of the functionality of a QMK keyboard, e.g. different functions for tap/hold, tap-dancing, layers, mapping to key combinations, etc., with a much more readable configuration.

    davidrevoy,
    @davidrevoy@framapiaf.org avatar

    @omidmnz Thanks for the guidance to better method. Do you have a tutorial in mind about them for beginners?

    davidrevoy,
    @davidrevoy@framapiaf.org avatar
    omidmnz,

    @davidrevoy that's a good one. Be sure to at least skim the documentation though. You might find features uniquely useful for your workflow that might not be as appealing to a programmer.

    portugalense,
    @portugalense@masto.pt avatar

    @davidrevoy i have the same laptop as yours, did you manage to make the fingerprint reader work?

    davidrevoy,
    @davidrevoy@framapiaf.org avatar

    @portugalense No, I noticed it, but as I'm not using it I haven't even tried. I remember the Arch wiki had something about it: https://wiki.archlinux.org/title/Lenovo_ThinkPad_Yoga_370

    portugalense,
    @portugalense@masto.pt avatar

    @davidrevoy fedora not same s arch , and i already tried and honeslty gave up thank you non the less 😊

    lexd0g,
    @lexd0g@wetdry.world avatar

    @portugalense @davidrevoy https://gist.github.com/borcean/f32c47f6cc52cee33dfc2265ce63f777 try this, worked on my x380 yoga and the 370 seems to have the same sensor

    davidrevoy,
    @davidrevoy@framapiaf.org avatar

    @lexd0g @portugalense Thanks Alice for the link, I'll bookmark and test. 👍

    grs,

    @davidrevoy That's pretty dang neat. I had no idea the Yogas could enable such fine work.

    Moini,

    @davidrevoy
    Hey - I use something similar, buttons don't look as nice, but programming it was so much easier with the GUI program Input Remapper:
    https://github.com/sezanzeb/input-remapper/releases

    Moini,

    @davidrevoy Also available in Debian and Ubuntu, but not the latest version, I suppose.

    It can also assign keycombos and keyboard sequences to keys. Super cool tool!

    davidrevoy,
    @davidrevoy@framapiaf.org avatar

    @Moini Oh! very cool, thanks for sharing. I'll have a look at it. 👍

    AlexanderMars,

    @Moini @davidrevoy wait, so I can use this to turn a generic numpad into a macro pad?

    davidrevoy,
    @davidrevoy@framapiaf.org avatar

    @AlexanderMars @Moini I just made a quick test and WOW. https://github.com/sezanzeb/input-remapper is amazing. The README has install method for Fedora and it was easy to install. It works really well and detect my Keyboard, my Xp-Pen buttons, button on my USB microphone! It really can input macros (multiple keys, composed shortcuts, and special keys) and you can have multiple presets for the same device. It cannot neutralize devices with hardcoded multiple keys (expected). I'll update the article with a note 😍

    AlexanderMars,

    @davidrevoy @Moini I think every #krita #inkscape #gimp user would want to know about this. Just need a cheap numpad and you have a custom macro deck. Gotta star the hell out of that project!

    emanoel,

    @davidrevoy thanks for sharing. Amazing idea

    kbsez,
    @kbsez@postchat.io avatar

    @davidrevoy

    This is freaking awesome, David! Thanks!

    I'm intrigued what editing and motion graphics things I could do with this idea...

    finlaydag33k,

    @davidrevoy Bookmarking for later.
    Could come handy for my video editing stuff.

    Paul_Aguayo,

    @davidrevoy what a beautiful, interesting and useful project.
    Thanks for sharing

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux
  • khanakhh
  • magazineikmin
  • mdbf
  • GTA5RPClips
  • everett
  • rosin
  • Youngstown
  • tacticalgear
  • slotface
  • ngwrru68w68
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • tester
  • JUstTest
  • ethstaker
  • cubers
  • osvaldo12
  • cisconetworking
  • Durango
  • InstantRegret
  • normalnudes
  • Leos
  • modclub
  • anitta
  • provamag3
  • megavids
  • lostlight
  • All magazines