this post was submitted on 24 Jun 2023
31 points (100.0% liked)
Unixporn
15408 readers
5 users here now
Unixporn
Submit screenshots of all your *NIX desktops, themes, and nifty configurations, or submit anything else that will make themers happy. Maybe a server running on an Amiga, or a Thinkpad signed by Bjarne Stroustrup? Show the world how pretty your computer can be!
Rules
- Post On-Topic
- No Defaults
- Busy Screenshots
- Use High-Quality Images
- Include a Details Comment
- No NSFW
- No Racism or use of racist terms
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I love the concept, but the script seems to be a bit broken?
It seems to be hardcoded to use
$HOME/git/magic-tape/
as the directory it runs from, which isn't going to be true for most people. You can usebasename -- "$0"
to get the directory the script is running from.Your point is valid. I am afraid this is so because I keep the scripts from my gitlab repos in a ~/git directory, just to keep them nice and tidy in that place.
At some point I was considering moving the sh script to ~/.local/bin/ , the cache files to ~/.cache/, the configuration files to .config etc, but never got to it. Perhaps it would be better this way.
However the installation instructions include commands to create the ~/git directory, so if one would just follow the instructions and run the respective commands, they would face no problem.
To run the script, I have a key binding dedicated to run
kitty -T Magic-Tape /home/myname/git/magic-tape/magic-tape.sh
, and a panel launcher with the same command, so the script runs fine.I will however check the info you gave me (which I admit I ignore), thank you for the feedback.
I have updated the script:
magic-tape.sh
is in~/.local/bin/
~/.cache/magic-tape/
~/.config/magic-tape/
The script now runs from any dir by:
Nice & clean