Skip Navigation

Posts
96
Comments
192
Joined
3 yr. ago

  • 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

  • Ευχαριστω!

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

  • Let me know if it works.

  • 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.

  • 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!

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

  • Thx, I think so, too!

  • The main difference is that the keybindings have nothing to do with the vim keybindings. In this script, these are totally configurable, and the default ones are quite easy and expected, ctrl-c for copying, ctrl-v for pasting, ctrl-x for cutting, ctrl-r for renaming, etc. And the use of fuzzy finder fzf.

  • Fear not, there are no scary commands in this script.

  • There is, if you like fzf, or if you are not comfortable with vim keybindings. Still, Ranger is awesome.

  • Well, after a quick search, from that source, I found that :

    ...A .theme file is a .ini text file that is divided into sections, which specify visual elements that appear on a Windows desktop. Section names are wrapped in brackets ([]) in the .ini file.

    I believe that the themes.txt file has not much to do with the above, furthermore, confusion between the two does not sound a good idea. What is more, one can say that file names such as themes.txt and current_theme.txt are quite descriptive and leave no doubts about their function. However, I think I understand your point of view. Perhaps I would consider renaming these in the future.

  • Well, there is just one themes.txt file, created inside .config/basht/ directory. There is no particular reason why it should not be a .txt. Would you suggest another solution?

  • This is a bash script I wrote:

    https://gitlab.com/christosangel/magic-tape

    As far as searches go:

    • s option: Search using a keyword/phrase
    • h option: Watch history
    • j option: Search history

    If I understand correctly, in your case: let's say you search for a term , i.e. vanillaOS. You will be able to select from a list of videos, with a preview image and other data ( data, views, channel etc). If on a later date you wish to search again for this term, by selecting the j option, you can easily repeat the same search, with any new videos available included.

  • Hey let me know how it goes, any feedback is welcome!

  • Thank you, I am glad you like it. I have been trying to improve it, adding functionalities, improving the selection mechanism with cursor and scrolling etc.

  • Thanks, any feedback would be welcome!

  • This may come as a shock as well, but here's the same script, in python: radion.py

  • linuxmemes @lemmy.world

    Linux you say? I n t e r e s t i n g . . .

  • Unixporn @lemmy.ml

    Nord theme for rofi

  • linuxmemes @lemmy.world

    GitLab is down

  • commandline @programming.dev

    Solve Sudoku puzzle from a screenshot (sudoku-solver-ocr in C, bash)

  • commandline @programming.dev

    magic-tape: YouTube TUI client (fzf, image support)

  • Unixporn @lemmy.ml

    lemmy-matrix

  • Linux @lemmy.world

    lemmy-matrix

  • Linux @lemmy.world

    Solve Sudoku puzzle from a screenshot (sudoku-solver-ocr in C, bash)

  • Linux @lemmy.ml

    Sudoku in C

  • Xfce @lemmy.world

    Weather forecast panel applet for xfce & cinnamon

  • Unixporn @lemmy.ml

    ascii-matrix

  • Unixporn @lemmy.ml

    magic-tape: YouTube TUI client (fzf, image support)

  • Linux @lemmy.ml

    magic-tape: YouTube TUI client (fzf, image support)

  • linuxmasterrace @feddit.de

    magic-tape: YouTube TUI client (fzf, image support)

  • Linux @lemmy.world

    magic-tape: YouTube TUI client (fzf, image support)

  • Kitty Terminal Emulator @midwest.social

    magic-tape: YouTube TUI client (fzf, image support)