Thirty keys are enough for Pickle Pi’s keyboard to handle text, shortcuts and even mouse clicks. Built by jefmer, this homemade Linux tablet combines a Gherkin mechanical keyboard with a 7-inch touchscreen, keeping full-size keys without letting the keyboard dictate a laptop-sized enclosure.
The project began in March 2024 with a Raspberry Pi Zero 2 W plugged directly into the controller board of a Waveshare 1024 × 600 touch display. That board also provides two USB ports and speaker support. Two sheets of 3 mm black acrylic, separated by brass spacers, form the enclosure; the rear sheet doubles as the keyboard’s bottom plate.
Inside sits a 10,000 mAh power bank. Fitting it required removing its plastic case and using taller spacers at the top of the tablet. Display brightness and contrast buttons sit beside the keyboard. It’s a compact, hand-built package rather than a polished case design.
Making 30 keys do more
The Gherkin uses an ortholinear layout—straight rows and columns—with Gateron Yellow switches, XDA-profile keycaps and an ATmega32U4 Pro Micro controller running QMK. The kit comes from Mechboards UK and is based on 40percentclub’s freely available design.
QMK gives several keys different jobs depending on whether they’re tapped or held. Tap one key for Enter, hold it for Shift; tap another for Z, hold it for Ctrl. Holding the rightmost space key exposes numbers on the top row. These layers preserve access to a larger keyboard’s functions, though jefmer reported a learning curve while writing the project description on it.
The keyboard also solved a touchscreen annoyance: right-clicking. After trying several software approaches with inconsistent or awkward results, jefmer assigned mouse movement and button functions to keys using QMK’s mouse emulation. Because those controls come from the keyboard firmware, they don’t depend on a particular window manager; the touchscreen right-click log notes that they also work with Wayland.
Reflashing the controller didn’t require opening the enclosure, either. A configurable keyboard combination—hold B and press Esc in this setup—entered the bootloader, avoiding the removal of twenty screws.
A Pi 4 earns its space
The original Zero 2 W handled Ghostwriter and Thonny adequately, according to jefmer, but its 512 MB of RAM made Chromium painfully slow and Visual Studio Code impractical. Compressed RAM swap and a 1.3 GHz CPU overclock made browsing just about usable, not comfortable.
The March 28, 2024 upgrade log records a more decisive fix: a 2 GB Raspberry Pi 4. Making it fit involved new connectors, removing the Ethernet connector and shortening the GPIO pins. That’s a significant physical modification, not a drop-in board swap.
Jefmer reported that Chromium became usable and Visual Studio Code responsive enough to be pleasant, provided browser tab counts stayed modest. The Pi 4 also allowed a useful shutdown arrangement: disabling USB power on shutdown reduced consumption enough for the power bank to switch itself off. Pressing the bank’s button starts the system again, so no separate power switch was needed.
The reported seven-to-eight-hour battery life belongs to the original Zero 2 W build; the supplied upgrade log gives no replacement runtime figure. The latest supplied build log is from March 2024, though jefmer confirmed in a December 2024 comment that the tablet was still getting used. Its appeal is straightforward: a lap-friendly Linux machine with real keys, where programmable keyboard firmware helps make a very small layout practical.
Source: Pickle Pi