100% use shellcheck! Saves so much time. Even better: https://github.com/bash-lsp/bash-language-server
- 2 Posts
- 10 Comments
IanTwenty@lemmy.worldOPto Bash@lemmy.ml•255 return code from command substitution of wait builtin but why?English1·3 months agoThanks, that was it! I’ve updated the post to include a final subshell example where we get the 127 return code we might have expected instead of the 255 from the second paragraph.
There’s something different about cmd substitution subshells to regular ones that produces this behaviour (the 255), it’s a quirk of BASH.
IanTwenty@lemmy.worldOPto Linux@lemmy.ml•Photo management at the cmdline - recommendations?2·7 months agoI think you’ve hit the nail on the head so to speak…it’s just too small/custom a thing for anyone to have built a dedicated tool it seems. In the end I am looking at using my file manager (nautlius) to automatically run a custom exiftool/bash script on chosen files so I can just click and rename/fix metadata etc as I browse through the files. Probably good enough for now.
IanTwenty@lemmy.worldOPto Linux@lemmy.ml•Photo management at the cmdline - recommendations?3·7 months ago💯 ! I been considering git-annex too which might let me treat all the photos like any git repo without the bloat.
IanTwenty@lemmy.worldOPto Linux@lemmy.ml•Photo management at the cmdline - recommendations?1·7 months agoThat looks a very useful tool, thanks. I think it could be just the thing for bulk renaming photos to standard names.
IanTwenty@lemmy.worldOPto Linux@lemmy.ml•Photo management at the cmdline - recommendations?1·7 months agoThank you for this. I think this has some of the operations I need, I will dig into the code.
IanTwenty@lemmy.worldto Linux@lemmy.ml•Alternative to syncthing for large music collection?4·7 months agoSo git-annex should let you just pull down the files you want to work on, make your changes, then push them back upstream. No need to continuously sync entire collection. Requires some git knowledge and wading through git-annex docs but the walkthrough is a good place for an overview: https://git-annex.branchable.com/walkthrough/
I seem to get pop-up notifications for free in GNOME/Fedora by setting these levels in
/etc/UPower/UPower.conf
:UsePercentageForPolicy=true PercentageLow=50 PercentageCritical=20 PercentageAction=10
I think you can also configure the system to take action when it reaches the lowest level with e.g.
# The action to take when "TimeAction" or "PercentageAction" above has been # reached for the batteries (UPS or laptop batteries) supplying the computer CriticalPowerAction=PowerOff
However I don’t know how to get these GNOME “Power” notifications to play an audible sound (without turning on notification sounds for ALL notifications). The best I could find is this: David Bazile / gaudible · GitLab
There’s talk of better control of sound notifications in GNOME 47+, but looks like nothing much has landed yet: Notifications in 46 and beyond – GNOME Shell & Mutter
https://codeberg.org/mineclonia/mineclonia/issues/2456
Marked as outdated however still useful I think