@christos@lemmy.world
@christos@lemmy.world avatar

christos

@christos@lemmy.world

This profile is from a federated server and may be incomplete. Browse more on the original instance.

christos,
@christos@lemmy.world avatar

Hey, I know the guy who wrote the script, he is great.

christos, (edited )
@christos@lemmy.world avatar
christos,
@christos@lemmy.world avatar

I have no idea. On an old potato laptop I tried it on it works ok, if I rush the keys, it is flickering a little.

christos,
@christos@lemmy.world avatar

Sure, it is a Potatomatic 4000, 2nd edition. No, not Alacrity. Thx though.

What distro should I use on my potato?

I have an HP Stream 11 that I want to use for word processing and some light web browsing - I’m a writer and it’s a lightweight laptop to bring to the library or coffee shop to write on. Right now it’s got Windows and it’s unusable due to lack of hard drive space for updates. Someone had luck with Xubuntu, but it’s...

christos,
@christos@lemmy.world avatar

Someone should come up with a new distro with the name potatOS, just for cases like this .

christos,
@christos@lemmy.world avatar

I am still using the arrow keys, I must be an idiot , too. If this script helps you with the vim movements, you can check out for the same reason two or three scripts of mine, in the same repo: tui-mines, mneme,tui-sudoku.

christos,
@christos@lemmy.world avatar

De gustibus et coloribus… I like bash.

It works for me.

About .local/bin/ not existing, or not being in the $PATH, that is why I also propose running the script locally, from the same directory with ./mneme.sh

Thanks, I am glad you like it.

christos,
@christos@lemmy.world avatar

I went on and added an if statement and a message to install.sh, just for the issue you mentioned…

christos,
@christos@lemmy.world avatar

It is not impossible. Are you up to modify 4 lines of code?

christos,
@christos@lemmy.world avatar

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!

christos,
@christos@lemmy.world avatar

Here is the solution just for you:

  • get to the tui-mines/ directory
  • open a terminal there
  • run this command sed -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.

christos,
@christos@lemmy.world avatar

Let me know if it works.

christos,
@christos@lemmy.world avatar

And to see the correct cheatsheet as well: sed -i ‘s/hjkl/awsd/’ tui-mines.sh

christos,
@christos@lemmy.world avatar

Ευχαριστω!

christos,
@christos@lemmy.world avatar

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 the NAVIGATION_KEYS value from vim+arrows (default) to aswd+arrows, the user can use the aswd 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

christos,
@christos@lemmy.world avatar

Welp, also solves the ‘Which distro to use?’ issue.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • rosin
  • InstantRegret
  • tacticalgear
  • DreamBathrooms
  • khanakhh
  • magazineikmin
  • thenastyranch
  • Youngstown
  • GTA5RPClips
  • slotface
  • Durango
  • ethstaker
  • kavyap
  • megavids
  • vwfavf
  • everett
  • cubers
  • cisconetworking
  • ngwrru68w68
  • normalnudes
  • modclub
  • mdbf
  • osvaldo12
  • tester
  • anitta
  • Leos
  • JUstTest
  • All magazines