Favourite Lesser Known Programs

Does it work with less -R ? You can put export LESS=R to .bashrc and simply less command should interpret colours correctly.

I tried it, and no joy with either exa or lsd on keeping colours, even with the -R (that should work. More research needed, I guess. I suspect lsd will be more difficult to get to work, because of the ā€˜graphics’ it also uses… (which I assume are awesome terminal fonts)

1 Like

I am quite tempted to try this one on a non arch-based distro:

1 Like

exa --color=always | less
works fine for me, don’t know about lsd.

3 Likes

Thanks for that - lsd also manages to show colour that way through less -R - and it ditches the ā€˜icons’ for that use. Now to decide which to use, and which aliases need to be redone! :grin:

Loving cat! But as far as I’m aware, you can’t bash an alias with spaces, it would need to be done as a shell function. :frowning:

# ls alternatives:
_lsa() { lsd --color=always "$@" | less -RF ; }
_lsb() { exa --color=always "$@" | less -RF ; }
_lsc() { exa --color=always "$@" | bat ; }

Then aliases:

alias ll='_lsa -l'
# and so on...
3 Likes

No, they’re fine…

alias ls=lsd`
alias lt=`ls --tree

But I’ll try your suggestions tomorrow when I have a few more minutes.

Of course this leads to being ā€œhelplessā€ without the aliases file… :grin: Could be worth it though…

Thanks for the shortcut!

Woah - should we split this off to a new thread?
Terminal shenanigans.

Though a few are essential ā€˜crutches’ - rc files are good places to leave notes and I’m learning to always look up my commands whilst using terminal… but if something like ā€˜bat’ is such a good replacement for ā€˜cat’ who wouldn’t do 'āÆ alias cat → cat=bat

For example, when you download your flac music and it’s one huge file with a cue file… and you want to use musicbrainz to import it…
alias cueflac cueflac='cuebreakpoints cd.cue |shnsplit -o flac cd.flac && cuetag cd.cue split-track*.flac'

I’m finding some errors with lsd.
If I put it to automatically cd, for example, and then cd to an ā€˜unfriendly’ location, it slows down with many Permission denied (oserror 13). The bug is listed under the snap version, but still unfixed… so exa is looking stronger.

After messing I settled on exa and some basic startups (exa, unlike lsd, has no config file - so alias is a good start)

# ls alternatives:
alias ls='exa --icons --color=always --group-directories-first'
alias la='ls -a'
alias ll='ls -l | less -RF'
# and so on...

# Automatically ls when changing directory
cd() {
  builtin cd "$@" && ls
}

Better for me - I can always do ā€˜alias ls’ to remind myself if something’s not going smoothly…

Works well with Dolphin and seems a more compatible ls replacement.

1 Like

All part of the fun! BTW - I wouldn’t do alias cat=bat because I am too lazy to do all the extra typing if I happen to need plain cat (no colours etc). I would actually have to type in /usr/bin/cat - instead of just choosing the first letter differently! :grin:

exa on the other hand - load 'er up!

Yes, I took that alias out because of theming… to manage when I switch from dark to light theming Seems good with

--theme="Solarized (light)"

Hold on, don’t you have a backslash?

Not that I know of - different shell perhaps? :grin: I try to stay fairly simple, as I swap between distros so much…

Yes please…

\cat

Overrides the alias and uses the plain and boring :cat2:

1 Like

I didn’t know that - I just thought I had to reference it by full path! It may not be the biggest thing I learn today, but potentially useful regardless… :grin: Easily accessed by UPHOME\ ENTER too…

Tested by myself and works well.

Step 1. Set up your first plasma - nice dark theme etc. Including fonts, and set your terminal theme as default. I tried it with my breeze/kvantum etc.
run `consave -s DarkPurple %% consave -l’

Currently it reports [Errno 2] No such file or directory: '/home/ben/.config/klipperrc' but the listing shows it worked.

Now you can mess about and make another - maybe Light, or alternative (Pink or Winter) scheme with different fonts to suit a light desktop and do consave -s Lighter && consave -l

Now to change theme, I found it works best with a script to refresh…

#!/bin/bash

consave -a 2
latte-dock --replace &&
plasmashell --replace &&
if pgrep -x "dolphin"
then pkill dolphin
fi

Make one script for each profile. Bingo - working a treat.

UPDATE - already gone through some merges.

Now it’s Konsave.

1 Like

I just discovered

which allows to map keyboard and mouse buttons on Wayland.

It’s key-mapper-git on AUR.

:exclamation:There are similar named but different packages like keymapper-git, don’t confuse them​:exclamation:

1 Like

Here’s another good thing - dua-cli
Disk Usage Analyzer

https://asciinema.org/a/316444

5 Likes
2 Likes