disable keyboard temporarily so that a book on keyboard does nothing.
i sometime need to place a book on keyboard but then i also dont want it to press key randomly. so i am looking for a way to,
temporarily disable a keyboard except for few keys like up/down for scrolling and another 'control key' for enabling/disabling. meanwhile i experiement with keymap. thanks |
Humour me... Why do you need to put a book on the keyboard? :scratch:
Have you tried putting the keyboard on your knees, book on the table/desk? Putting your keyboard/system on a bigger table/desk which will also accomodate the book? Put the book on the table/desk and the keyboard standing vertically to the left ot right of the table/desk? Getting a separate bookstand (like a music stand)? Then there's... Get a pdf file of the book and display it on your left or right hand screen? Huh? You don't have two screens? Nail the book to the wall behind your screen... (sorry becomming silly now so I'll stop. :D Then again...maybe unplug the keyboard and fit a USB number keypad(much smaller)? You'd get home, pg up, arrow keys,etc. Play bonny! :hattip: |
I agree with Soadyheid. First of all, I don't know why you would be doing such a thing, but if you have to, I'd say move it or unplug it.
Out of curiosity, is this just a hypothetical question to see if it can be done, or is it for a reason? |
s/book/cat/ and you would have my reason for wanting to disable the keyboard occasionally. (Of course, I'm not the one "placing" the cat on the keyboard.)
|
i have a laptop which is either or my lap or a small desk. so cant do anything suggested.
Quote:
i am still digging though but i think an almost-null keymap with only few assigned keys (control key at least) would work. can double keystroke be assigned as a global shortcut system wide (independent of X) ? |
Quote:
The solution is therefore much clearer! Quote:
If the notes you are taking are on loose paper (or will be fitted into a loose leaf binder) Buy a clip board and. with the laptop on the table, hold the clip board in one hand while writing notes with the other. The clip board can be laid on your lap/the floor or wherever while you use the laptop. Use a hard backed notebook if loose leaf is not an option. Tah Dah! Play Bonny! :hattip: |
I would use xlock or xlockmore to lock the screen, that way you need to put in a password and that's unlikely to be entered with a book. It's not 100%, but the only 100% solution is to unplug the keyboard or stop putting a book on the keyboard.
|
got it (almost) .
it uses xmodmap so it depends on X . the basic idea is to use different .Xmodmap . .Xmodmap_null Code:
keycode 8 = Code:
xmodmap .Xmodmap_null change_xmodmap.sh Code:
#!/bin/bash Quote:
Quote:
hope it helps rknichols. thanks everyone. |
Quote:
May be a dumb question, but if you want to make notes, why don't you just launch your favorite text editor and use the keyboard instead of disabling it? I for one can type faster that write with the hand and if your WM or DE has a scratchpad function (may be named different in other WMs/DEs as i3) it is very easy to show the editor only when needed (on any screen). |
Quote:
Quote:
|
All times are GMT -5. The time now is 09:31 PM. |