inside the mind of a linux admin

My Lenovo laptop thinks the pipe key is a > character

So, those that know me know I have a few laptops. I’m no stranger to technology.

Imagine my chagrin when I try piping a linux command to grep and my output comes out like so:

ps uawx > grep X

I know that the ps command thinks it is superior to grep, but seriously. WTF


Huzzah! You can use xmodmap to tell Linux what that key should actually do.

xmodmap -e “keycode 94 = backslash bar”

Now suppose you don’t want to actually have to hack that every time you use your system? Well, here’s a quick fix until the real fix hits the repos…


echo 'xmodmap -e "keycode 94 = backslashbar"' > kbfix.sh
chmod +x kbfix.sh

Note: ALL punctuation is necessary above (quotes and double quotes).

If using one of the common distros, open System -> Preferences -> Startup Applications and in the Startup Programs Tab, click Add.

Then put the path to your newly made executable script, give it a description and reboot. Your keyboard should be sane again.

Related Posts

How to revert back to X11 / Xorg from Wayland

Wayland is intended as a “simpler replacement for X”, and is getting quite a bit of hype around the Linux community. So much so, that it’s the default in the latest versions of Fedora, GNOME, KDE and others. While Wayland may be the future, it really is in future. At least for Ubuntu 17.10. The […]

Read More

Touchpad stops working after sleep + resume (Fedora 26 on Dell XPS)

After recently upgrading my Dell XPS 13 w/Touchscreen to Fedora 26, the touchpad suddenly stopped working upon resuming from sleep mode. It was reproduced 100% of the time, and required a complete restart in order to get the touchpad working again. There have been several forum posts and bug reports regarding others experiencing these exact […]

Read More

Leave a Reply

Your email address will not be published. Required fields are marked *

Twitter: kireguy

Tweeter button Facebook button Myspace button