292
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 27 Mar 2024
292 points (98.7% liked)
Linux
48334 readers
671 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
Is it possible to use wasd instead of hjkl? I'm not old enough for that.
Here is the solution just for you:
tui-mines/
directorysed -i 's/k|A/w|A/;s/h|D/a|D/;s/j|B/s|B/;s/l|C/d|C/' tui-mines.sh
Run the script
./tui-mines.sh
You can now play using lower case awsd.
Haven't had the time to use my computer yet, but I will update you soon. ™️
IMPORTANT UPDATE: Since many youngsters who unlike me, a senior citizen, live on the edge and hate vim keys or arrow keys, have requested an alternative navigation keys set up, I have just implemented a configuration option that satisfies just that.
By editing the config file (either within the application or just editing
~/.config/tui-mines/tui-mines.config
, and changing theNAVIGATION_KEYS
value fromvim+arrows
(default) toaswd+arrows
, the user can use theaswd
keys to navigate in the game grid, just as requested.No other commands or hacks are needed.
Arrow keys
remain hardcoded, because they remind me of my youth, as an archer, during the Peloponnesian War❤️
Wait up, I am preparing one command for you, you run it, and you use your keys as you wish. Just don' put caps lock!
And to see the correct cheatsheet as well:
sed -i 's/hjkl/awsd/' tui-mines.sh
Let me know if it works.
It is not impossible. Are you up to modify 4 lines of code?
From the gitlab page: