Skip to content

Instantly share code, notes, and snippets.

@pjrulez
pjrulez / gist:a0a1e5c06b3579cbf637101a0cc07f8d
Last active January 29, 2025 04:10
How to disable builtin laptop keyboard and add a toggle button to waybar (ML4W Dotfiles)
Arch Linux, Hyprland, ML4W Dotfiles: Toggle Input Device
Font Awesome Keyboard Icon Enable/Disable Input Device Toggle Button in Hyprland /w ML4W Dotfiles
So, after trying all the wrong ways of doing it (xorg-xinput, evtest, ...), and almost breaking the whole configuration I finally got it.
Pasting here for reference if someone else wants to place your mechanical keyboard on top of your laptop without worry.
I'm using ML4W Dotfiles so my solution is within that context. Here are the necessary changes:
First, run 'hyprctl devices', and find your builtin keyboard name. It will possibly be named something like "at-translated-set-2-keyboard"